> On Apr 22, 2015, at 7:40 AM, Gm <[email protected]> wrote:
> 
> Hi,
> 
> I have a lot of javascript functions that can't be executed when I render a 
> partial.
> I mean. There are functions that area described inside a js file and when a 
> partial that calls some functions from that file is rendered, nothing occurs.
> 
> How can I execute a javascript function when a partial is rendered ?

Can you say a little more about how you are rendering these partials? Are you 
using remote: true to inject them into the page with JavaScript views, or are 
you rendering the whole page? If the latter, are you using Turbolinks? You may 
need to wrap your JavaScript in an event listener for the page:change event.

Walter


> 
> Thanks.
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/rubyonrails-talk/5085892d-7cd6-4a65-9b1e-1fc0221101d4%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/E0F35D8B-1445-4948-A032-BB1F02778ADD%40wdstudio.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to