Hi I''ll admit that I''m being lazy and trying to avoid learning enough javascript to implement this in Script.aculo.us, but if I have to I will. If I don''t then someone will have answered this question I have. ;) I have an .rhtml being rendered but I want to also ''flash'' a <DIV> element on the screen that matches a criteria, this page is NOT being updated via ajax. Any clue? thanks. -- 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 -~----------~----~----~----~------~----~------~--~---
I''m not sure I have enough information about what you are trying to do, but do you mean that you want to put flash data into a div if certain criteria is true at the time the page is rendered? If so, you could just do this in your .rhtml file: ... <% if condition -%> <div><%= flash[:error] -%></div> <% end -%> ... If you are wanting to do something after the page is rendered based on user interaction, that would need to be done w/ javascript. -Bill Jean Nibee wrote:> Hi > > I''ll admit that I''m being lazy and trying to avoid learning enough > javascript to implement this in Script.aculo.us, but if I have to I > will. > > If I don''t then someone will have answered this question I have. ;) > > I have an .rhtml being rendered but I want to also ''flash'' a <DIV> > element on the screen that matches a criteria, this page is NOT being > updated via ajax. > > Any clue? > > thanks. >-- Sincerely, William Pratt --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
I think what you want to do is this: <body onload="new Effect.Highlight(''some_id'');"> <div id="some_id">Watch me highlight!</div> </body> cheers Ivor On 9/13/07, Jean Nibee <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > > Hi > > I''ll admit that I''m being lazy and trying to avoid learning enough > javascript to implement this in Script.aculo.us, but if I have to I > will. > > If I don''t then someone will have answered this question I have. ;) > > I have an .rhtml being rendered but I want to also ''flash'' a <DIV> > element on the screen that matches a criteria, this page is NOT being > updated via ajax. > > Any clue? > > thanks. > -- > 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 -~----------~----~----~----~------~----~------~--~---