I am using jQuery with the rails defaults in my app and would like to
call jQuery commands from my RJS templates or from respond_to blocks.
I''ve seen this used in a railscast:
page <<
"jQuery(''some_id'').css(''color'',''red'');"
but I''d like it to execute with the others, namely:
page.visual_effect :highlight, ''some_id''
page <<
"jQuery(''some_id'').css(''color'',''red'');"
Am I going about this the wrong way, or should this be working?
--
Posted via http://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-/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
-~----------~----~----~----~------~----~------~--~---