On Mon, 2009-07-06 at 16:40 -0700, JannaB wrote: > In my view I have a: > > <%= render :partial => 'uplog' %> > > and the partial is shown below. Note there is js in it which I thought > got executed on load (but, I have found out this does NOT happen when > a partial is loaded. How else can I execute the js below when the > partial gets loaded (someone said to call it explicitly....but how and > from where?) THanks, Janna B > Not tested, but I believe you can add the onload to the div.
<div id="namesdata" style="float: left; width: 200px;" onload="startClock('your parameters' in single quotes')"> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---