Forum: JavaScript / DHTML / AJAX 34 Days Ago |
| Replies: 6 Views: 598 No..., its exactly like that.
Inline scripts are, 'a bad coding practice' everybody agrees upon. Me to.
The onfocus event gets fired when element receives focus. That's all you need to know. And... |
Forum: JavaScript / DHTML / AJAX 34 Days Ago |
| Replies: 6 Views: 598 someLink.onfocus=doYourThing
Where "doYourThing" is the function you want to invoke when that paricular link has recieved focus. |
Forum: JavaScript / DHTML / AJAX Nov 4th, 2009 |
| Replies: 6 Views: 726 could it be the other way around, because if it really happens to be an IE "bug" you should post back at Microsoft -'cause we cant fix browsers.
Why don't you check you code instead of 'repoting... |
Forum: JavaScript / DHTML / AJAX Nov 4th, 2009 |
| Replies: 4 Views: 373 of course, thats because your border doesn't have a color for you to see it, you sould set the bordercolor also. Or assign a previously defined class instead. it keeps things cleaner. |
Forum: JavaScript / DHTML / AJAX Oct 14th, 2009 |
| Replies: 8 Views: 1,654 Yes, you simply delete it!
Just change the play button code from:
<INPUT TYPE="BUTTON" VALUE="Play" OnClick="Player.controls.play()">
into:
<INPUT TYPE="BUTTON"... |
Forum: JavaScript / DHTML / AJAX Oct 13th, 2009 |
| Replies: 8 Views: 1,654 This is interesting ....[?!?] still haven't found anything working for you on internet?!
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>... |
Forum: JavaScript / DHTML / AJAX Oct 12th, 2009 |
| Replies: 5 Views: 468 in fact, there is no such thing as anonymous array, this supposedly "arrray" will be garbage collected as soon as the function has passed over.
Therefore you must initiate/create that array... |
Forum: JavaScript / DHTML / AJAX Oct 9th, 2009 |
| Replies: 8 Views: 1,654 The topmost code is hard coded html meaning it is html;
the second one is a scripting syntax meaning it has to go inside the <script> tag.
That line will store reference to the player object in... |
Forum: JavaScript / DHTML / AJAX Oct 8th, 2009 |
| Replies: 8 Views: 1,654 <OBJECT id="VIDEO" width="320" height="240"
style="position:absolute; left:0;top:0;"
CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
type="application/x-oleobject">
<PARAM NAME="URL"... |
Forum: JavaScript / DHTML / AJAX Oct 4th, 2009 |
| Replies: 16 Views: 803 Sorry, but I have to disagree, since the script in discussion takes care of preloading too.
You should read the code more carefully... |
Forum: JavaScript / DHTML / AJAX Oct 4th, 2009 |
| Replies: 16 Views: 803 The "A" is exactly one or any of these "A"s in the Document! The "A" came from here:
<A HREF="next1.html"> <!-- PARENT -->
<IMG SRC="images/button1_off.gif" width="113" height="33" alt="button1"... |
Forum: JavaScript / DHTML / AJAX Oct 4th, 2009 |
| Replies: 9 Views: 582 1. Have you tried it against your refrigerator too. What on earth do you mean by "remote server" ?!!
2. Yes. Human mistake, most certainly you! |
Forum: JavaScript / DHTML / AJAX Oct 4th, 2009 |
| Replies: 16 Views: 803 Hi, there.
This is some very old script, rigid and extremely interdependant
This script will stop functioning as soon as file naming convention is broken. Meaning that it relies in things not... |
Forum: JavaScript / DHTML / AJAX Oct 3rd, 2009 |
| Replies: 6 Views: 684 good.
this would be your HTML
<form name="dropDown" action="" method="" >
<select name="disposition">
<option value="" >Select Scene</option>
</select>
</form>
this would be the string format... |
Forum: JavaScript / DHTML / AJAX Oct 2nd, 2009 |
| Replies: 6 Views: 684 please write your select list and populate it manually as an example so we can have some idea on what you seek, in fact to have something we can refer (to and from) in our possible explanations that... |
Forum: JavaScript / DHTML / AJAX Oct 2nd, 2009 |
| Replies: 9 Views: 582 Nice
I'm puzzled though, why is that code using same id on multiple elements?
And I have another puzzle somebody could answer to me: whose responsibility is to mark threads as solved, :: the... |
Forum: JavaScript / DHTML / AJAX Oct 2nd, 2009 |
| Replies: 10 Views: 962 <html>
<head>
<style type="text/css">
<!--
.fontStyle {
font-family: Verdana, Geneva, sans-serif;
font-size: small;
font-weight: bold;
color: #67A2DC;
} |
Forum: JavaScript / DHTML / AJAX Oct 2nd, 2009 |
| Replies: 9 Views: 582 I've underlined some conflicting statements in your problem description, and the clearance on that part might give some strait forward solution.
That is: if explanation stating that elements are... |
Forum: JavaScript / DHTML / AJAX Sep 26th, 2009 |
| Replies: 3 Views: 287 Here you go
function validate_choice(field,alerttxt){
with (field){
if (value ==null || value == "" || value=="ds01"){
return true;
}
else if (value != "ds01"){
alert(alerttxt);... |
Forum: JavaScript / DHTML / AJAX Sep 23rd, 2009 |
| Replies: 9 Views: 319 No, no, no change in actual code please - make an addition only.
here are the steps:
in this line of code - all you have to do is to ad an ID to that input
<td><input type="text" value="0" size... |
Forum: JavaScript / DHTML / AJAX Sep 23rd, 2009 |
| Replies: 9 Views: 319 This is more complicated than that
doAdd(this ...
turns out to be
doAdd(ths)
The "ths" is short for something having to do with the table but I dont understand the h and s part.
So the ths... |
Forum: JavaScript / DHTML / AJAX Sep 23rd, 2009 |
| Replies: 9 Views: 319 "this"? :')
"this" what? -what is "this"when called from document object or document body?
the function caller, - but you don't want that, you want the exact element on which the function was... |
Forum: JavaScript / DHTML / AJAX Sep 23rd, 2009 |
| Replies: 9 Views: 319 How are you calling the function during onload event?
hopefully not with something like :
onload="doAdd(this)"
because that's wrong! |
Forum: JavaScript / DHTML / AJAX Sep 21st, 2009 |
| Replies: 10 Views: 564 :')
"
DaniWeb Community > Web Development > JavaScript / DHTML / AJAX
JavaScript / DHTML / AJAX RSS JavaScript / DHTML / AJAX RSS
Works in IE not Firefox
:'p |
Forum: JavaScript / DHTML / AJAX Sep 21st, 2009 |
| Replies: 10 Views: 564 Netscape UA children are not capable of recognizing DOM elements by their Names or IDs natively!
They'll need externally patched built-in functions attached to Document Object, to become aware of... |
Forum: JavaScript / DHTML / AJAX Sep 19th, 2009 |
| Replies: 8 Views: 487 According to what is written in the code - the function recursion should stop only when "exponent" reaches 0 value.
so if the base number is 2, on exponent 7, in iterations we'll have:
2 * (7 -... |
Forum: JavaScript / DHTML / AJAX Sep 19th, 2009 |
| Replies: 8 Views: 487 of course, "base" argument-value is always the initial given value - according to the function: only the "exponent" should change!
"base" is the BASE! There's no practical use if the base number... |
Forum: JavaScript / DHTML / AJAX Sep 19th, 2009 |
| Replies: 8 Views: 487 The values are being kept and passed on function argument variables base & exponent, and the function will call itself until the exponent variable value reaches 0 ending the loop with 1.
Such a... |
Forum: JavaScript / DHTML / AJAX Sep 14th, 2009 |
| Replies: 6 Views: 654 Good luck than!
But you should have told us that the solution:
.
.
.
img.onclick=getImgId;
.
.
.
function getImgId(){ id = this.id; alert( id ) } |
Forum: JavaScript / DHTML / AJAX Sep 14th, 2009 |
| Replies: 3 Views: 360 Please use: targetElement.innerText
IE / Safari / Chrome / Opera / Konqueror
For Firefox, use: .texContent
or for crossbrowser cure the innerHTML string with
str2search =... |
Forum: JavaScript / DHTML / AJAX Sep 13th, 2009 |
| Replies: 6 Views: 654 Hey junkhead, did you finish school?!!
What grade did you get? |
Forum: JavaScript / DHTML / AJAX Sep 12th, 2009 |
| Replies: 6 Views: 654 function vulpagina() {
var maindiv=document.getElementById("maindiv");
for(i=0; i<26; i++){
var imgnr = i;
var div=document.createElement("div");
var img=document.createElement("img");... |
Forum: JavaScript / DHTML / AJAX Sep 11th, 2009 |
| Replies: 3 Views: 1,112 For as far as I know it doesn't,
where did you see that? :')
[in firefox it's only possible in recently adopted 1997 IE technology "contentEditable" mode turned On, not in normal view mode. ]
... |
Forum: JavaScript / DHTML / AJAX Sep 11th, 2009 |
| Replies: 3 Views: 1,112 That's because firefox is not capable of executing this or any other commands associated with document.exec ! |
Forum: JavaScript / DHTML / AJAX Sep 10th, 2009 |
| Replies: 5 Views: 529 Yes that should break the recursive mouseover rising event, but what about second mouseover? That is: after the mouseout event has taken place? It will most probably die. Of course if you don't write... |
Forum: JavaScript / DHTML / AJAX Sep 9th, 2009 |
| Replies: 5 Views: 529 That's because you are creating a situation of infinite "mouseover" event occurrence. |
Forum: JavaScript / DHTML / AJAX Aug 29th, 2009 |
| Replies: 4 Views: 521 Try to correct that one into this:
<SCRIPT type="text/javascript">
function swapImage(image) {
var Map = document.getElementById('MapWest') ||document.images['MapWest']|| MapWest||null;... |
Forum: JavaScript / DHTML / AJAX Aug 4th, 2009 |
| Replies: 22 Views: 1,116 OK leave everything else as is and since you know some javascripting, than
I suggest you use the browser address-bar for data persistence!
:)
get the "full name" variable and append it to the... |
Forum: JavaScript / DHTML / AJAX Aug 4th, 2009 |
| Replies: 22 Views: 1,116 how much data are you trying to pas to the folowing page?
-cause if it's only a Name and/or Surname, you won't be needing 'php', 'cookies' or similar ... |