what exactly happen , when partial loaded ? any error ? ~ N a R e N
On Tue, Jul 7, 2009 at 7:56 PM, bill walton <[email protected]> wrote: > > On Tue, 2009-07-07 at 02:06 -0700, JannaB wrote: > > No, nor does this work in a partial. > > > You haven't said what triggers the load of the partial. If you can make > that event an Ajax event, then you can trigger the execution of the JS > directly in an RJS template. The only problem I'd potentially > anticipate would be if the browser decided to execute the JS prior to > the completion of the rendering of the partial. Shouldn't happen, but > if it did, you could just put the function in application.js and it > would already be there. > > If you go this route, the only 'tricky' part I ran across was > understanding that, assuming your JS signature looks like this: > > startClock('arg1'); > > The RJS signature looks like this: > > page.call "startClock" "arg1" > > HTH, > Bill > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 [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-talk?hl=en -~----------~----~----~----~------~----~------~--~---

