Re: javascript variables undefined Firefox



RobG wrote:
jimmygoogle wrote:

I posted earlier with a scope problem.  I think I resolved it in IE but
in Firefox it still exists.  Anyone have any ideas/experience with
this? I attached my code sorry it is so long.  You can cut/paste it
into 2 files and run it to see what I mean.


It has nothing to do with scope, it's a surprise to me that it is 'fixed' in IE.

I guess IE is making a synchronous call.

[...]

    if (document.implementation &&
document.implementation.createDocument){
        alert ("MOZ");
        xmlDoc = document.implementation.createDocument("", "", null);

To make Mozilla do a synchronous call, insert:

           xmlDoc.async = false;

But you get an error later in your menu building script anyway. You can try to track it down if you like, good luck.


[...]


-- Rob .



Relevant Pages

  • Re: clientX failing on Firefox?
    ... Firefox, though. ... This is a simple gallery of early Ukrainian easter eggs that were ... And yes, RobG, QuirksMode's code seemed like it was the best I ...
    (comp.lang.javascript)
  • Re: Alternative to "children" property of DOM in firefox
    ... RobG wrote: ... How do I change the second line of code for it to work in firefox? ... be a tableSection element - thead, tfoot or tbody - or maybe a caption, col or colgroup. ... if (thisDoc ...
    (comp.lang.javascript)
  • Re: Problem with simulating a link.click
    ... RobG wrote: ... though Firefox v2 and earlier did and Safari 3 still does. ... I want to simulate a user link click without the knowledge, ...
    (comp.lang.javascript)
  • Re: Trying to duplicate createTextRange functions
    ... RobG wrote: ... however I couldn't get it to work using Firefox 1.5.0.4 (Mac OS) even though the Gecko DOM reference indicates that it should - as soon as you click on a button, ...
    (comp.lang.javascript)