Marko Vuksanovic
2007-Aug-23 14:05 UTC
How to execute custom javascript code inside an rjs template
I''d like to execute a piece of javascript code, for example funcion f1() { alert(''test''); } in an rjs template "page[:ticket_being_deleted].visual_effect :fade" I know this executes some javascript, but is there a way that instead of this javascript code, I execute f1 function? Thanks in advance, Marko Vuksanovic. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Aurélien Malisart
2007-Aug-23 16:12 UTC
Re: How to execute custom javascript code inside an rjs template
There''s an example for that here: http://railscasts.com/episodes/45, in the screencast but also in the piece of code on the webpage. Enjoy! Aurels --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---