Heisenbug? alert() makes error disappear

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • bill

    Heisenbug? alert() makes error disappear




    I'm having an error of the form "foo has no properties" that
    disappears if I insert the statement "alert(foo) ;" right before the
    line that triggers the error. What's going on?

    Many thanks!

    bill

  • Lee

    #2
    Re: Heisenbug? alert() makes error disappear

    bill said:
    [color=blue]
    >I'm having an error of the form "foo has no properties" that
    >disappears if I insert the statement "alert(foo) ;" right before the
    >line that triggers the error. What's going on?[/color]

    It sounds like there's a problem of some sort.
    We need to see a small example of code that shows the problem in order to be
    more specific.

    Comment

    • kaeli

      #3
      Re: Heisenbug? alert() makes error disappear

      In article <cf04pp$j2f$1@r eader1.panix.co m>, please_post@nom ail.edu
      enlightened us with...[color=blue]
      >
      >
      >
      > I'm having an error of the form "foo has no properties" that
      > disappears if I insert the statement "alert(foo) ;" right before the
      > line that triggers the error. What's going on?
      >[/color]

      Sounds like you're trying to reference something that isn't defined at the
      time you're referencing it. We'd need to see code to know more.
      You're not trying to access a page element before the page is done loading,
      are you?

      --
      --
      ~kaeli~
      What if the Hokey Pokey IS what's it's all about?



      Comment

      Working...