On Jul 16, 1:22 am, "[email protected]" <[email protected]>
wrote:
> I've made a quick search on Google and realised it's because the
> sliders are being created before the HTML elements are initialised (as
> script.js loads in the header).
> I used a setTimeout and it now works fine! Thanks anyways!

A *much* better approach is to use an event, and Prototype provides
one specially for you:

document.observe('dom:loaded', function () {
  // Any code that depends on the DOM being completely loaded
})
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to