Hello, How do i create a highlighting visual effect using rjs. Actually I have to highlight the list which I am displaying by clicking an image. show.rhtml ........... <%= link_to_remote(image_tag("/images/pictures/" ".jpeg", :size=>"90x100"), :url => {:action =>''imag1''}, :update => ''one''%><br /> <div id="one"></div> When I click this image link it should highlight the contents it is displaying. I have made use of an adb.rjs and placed the code " page[:one].visual_effect :highlight, :duration =>10 " -- 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 -~----------~----~----~----~------~----~------~--~---
.... and then what happens.. On Sep 6, 11:41 pm, Advait Bellur <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Hello, > > How do i create a highlighting visual effect using rjs. Actually I have > to highlight the list which I am displaying by clicking an image. > > show.rhtml > ........... > > <%= link_to_remote(image_tag("/images/pictures/" ".jpeg", > :size=>"90x100"), > :url => {:action =>''imag1''}, > :update => ''one''%><br /> > <div id="one"></div> > > When I click this image link it should highlight the contents it is > displaying. > > I have made use of an adb.rjs and placed the code > > " page[:one].visual_effect :highlight, :duration =>10 " > -- > Posted viahttp://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 -~----------~----~----~----~------~----~------~--~---
Cache22 wrote:> .... and then what happens.. > > On Sep 6, 11:41 pm, Advait Bellur <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>Advait I didn''t understand when you say " and then what happens ", What more is required else should I attach my source code. Thank You -- 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 -~----------~----~----~----~------~----~------~--~---