2009/10/14 Rafael Roque <rails-mailing-l...@andreas-s.net>:
>
> Hi all,
> Does someone know why the following code doesn´t work if it is embedded
> in a partial?in a regular .rhtml file works well.
>
> <script>
>  document.observe('dom:loaded', function() {
> alert('testing');
> });
>  </script>

Check the generated html in your browser if you have not done that
already (View, Page source or similar).  Also try pasting the entire
html into the w3c html validator to check there are no errors.

Colin

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to