The basic, fundamental way everywhere in the examples (and in the books) is to register your observers within a dom:loaded observer. Something like this in your scripts:
... function initXYZObservers() { ... } ... function initABCObservers() { ... } ... document.observe('dom:loaded', function() { initXYZObservers(); initABCObservers(); }); dom:loaded will trigger once the DOM is fully loaded, but before external resources, such as images and stylesheets, have loaded. It's an ideal place to register your observers unobtrusively ASAP. You'd see it everywhere in my book ;-) http://books.pragprog.com/titles/cppsu/ 'HTH -- Christophe Porteneuve aka TDD [EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---