Very strange problem - Firefox and "variable is not defined" after refresh

Discussion in 'Javascript' started by Larax, Aug 22, 2006.

  1. Larax

    Larax Guest

    Alright, so here's the problem. I define a global variable in my script
    and then add methods/properties to it. Everything works great, no error
    in Javascript Console. But when I refresh site, several errors
    "variable is not defined" are displayed. What is more strange, the
    script is still working ! After each another refresh these errors are
    keep showing, only after I close site and open it again, these errors
    disappear, but only to next refresh. Also there is even more strange
    thing - these problems accured after I added some code to my script,
    but when I removed whole new code these errors are keep showing..

    Anyone know what the hell is going on? Is that a bug or something in
    Javascript Console?

    I'm using Firefox 1.5.0.6 (these problems were also in 1.0.5, but when
    I installed 1.5.0.6 they dissappeared.. not for long..)
    Larax, Aug 22, 2006
    #1
    1. Advertising

  2. Larax

    Randy Webb Guest

    Re: Very strange problem - Firefox and "variable is not defined"after refresh

    Larax said the following on 8/22/2006 9:51 AM:
    > Alright, so here's the problem. I define a global variable in my script
    > and then add methods/properties to it. Everything works great, no error
    > in Javascript Console. But when I refresh site, several errors
    > "variable is not defined" are displayed. What is more strange, the
    > script is still working ! After each another refresh these errors are
    > keep showing, only after I close site and open it again, these errors
    > disappear, but only to next refresh. Also there is even more strange
    > thing - these problems accured after I added some code to my script,
    > but when I removed whole new code these errors are keep showing..
    >
    > Anyone know what the hell is going on? Is that a bug or something in
    > Javascript Console?
    >
    > I'm using Firefox 1.5.0.6 (these problems were also in 1.0.5, but when
    > I installed 1.5.0.6 they dissappeared.. not for long..)
    >


    URL to a sample page that displays the behavior?



    --
    Randy
    comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
    Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
    Randy Webb, Aug 22, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. brewman
    Replies:
    0
    Views:
    1,440
    brewman
    Aug 28, 2003
  2. Raymond Arthur St. Marie II of III

    very Very VERY dumb Question About The new Set( ) 's

    Raymond Arthur St. Marie II of III, Jul 23, 2003, in forum: Python
    Replies:
    4
    Views:
    470
    Raymond Hettinger
    Jul 27, 2003
  3. Kenneth McDonald

    Very, very strange problem with properties

    Kenneth McDonald, May 4, 2004, in forum: Python
    Replies:
    2
    Views:
    257
    Kenneth McDonald
    May 4, 2004
  4. shanx__=|;-

    very very very long integer

    shanx__=|;-, Oct 16, 2004, in forum: C Programming
    Replies:
    19
    Views:
    1,615
    Merrill & Michele
    Oct 19, 2004
  5. ORF3O
    Replies:
    2
    Views:
    158
    ORF3O
    Oct 14, 2005
Loading...

Share This Page