Hi guys,
In my DOM ready login (Event.observe(window, 'load', function()
etc...) I am setting up my page observers. This is working great
except certain elements aren't available on all pages so their causing
Javascript errors when the observer is looking for them and they
aren't there.
Currently I'm getting around this by doing the following in my DOM
ready script:
$('frm') === null ? "" : Event.observe('frm', 'submit', handler);
Now while this works I'm not sure if it follows "best practise" for
Prototype.
Thoughts?
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
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
-~----------~----~----~----~------~----~------~--~---