Use prototype functions to handle the onload events.  It is better
than plugging in onload code into your HTML tags.   Look at the online
documentation for examples.   You can use either the dom:loaded event
or the window:onload event.



On May 11, 1:50 pm, Sijo Kg <rails-mailing-l...@andreas-s.net> wrote:
> Hi
>    In my partial I tried like
> <div id"graph_div" onload="somescript();">
> </div>
>
>    But this onload not working Since I tried with an alert first Could
> you please tell how can I do this?
>
> Sijo
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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