I am having some issues when using document.observe("dom:loaded", function()

I have an asp page where I am trying to observe the click event on some 
elements. I load the page and click on the elments and nothing ever 
happens. So I put an alert inside of my document.observe("dom:loaded", 
   alert("dom loaded");

  // observe click events....

After I dismiss the alert, the click events I am trying to observe, work 
perfectly. Why do I need to have the alert in there. Is there some timing 
issue that I am not aware of? Without the alert in there I can occasionally 
get the click events to work after refreshing the page several times.

You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To view this discussion on the web visit 
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to