hi, following code: page.replace_html "divNotifier#{params[:m].to_i}", "Notification email got sent out!" page.visual_effect :Highlight, "divNotifier#{params[:m].to_i}" , :duration => 3 page.visual_effect :fade, "divNotifier#{params[:m].to_i}", :duration => 2, :delay => 10 works only the first time, another press on the submit_tag for the remote_form doesnt work... i dont see it anyone? thx -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Tom, this is a question for the talk list<https://groups.google.com/forum/?hl=en#!forum/rubyonrails-talk>, not the core list. On Wed, Feb 16, 2011 at 8:57 AM, tom <tomabroad@gmail.com> wrote:> hi, > > following code: > > page.replace_html "divNotifier#{params[:m].to_i}", "Notification email got > sent out!" > page.visual_effect :Highlight, "divNotifier#{params[:m].to_i}" , :duration > => 3 > page.visual_effect :fade, "divNotifier#{params[:m].to_i}", :duration => 2, > :delay => 10 > > > works only the first time, another press on the submit_tag for the > remote_form doesnt work... > > i dont see it > anyone? > thx > > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Core" group. > To post to this group, send email to rubyonrails-core@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-core+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-core?hl=en. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
ups, sorry. my mistake. On Wed, Feb 16, 2011 at 1:08 PM, Jason King <jk@handle.it> wrote:> Tom, this is a question for the talk list<https://groups.google.com/forum/?hl=en#%21forum/rubyonrails-talk>, > not the core list. > > On Wed, Feb 16, 2011 at 8:57 AM, tom <tomabroad@gmail.com> wrote: > >> hi, >> >> following code: >> >> page.replace_html "divNotifier#{params[:m].to_i}", "Notification email got >> sent out!" >> page.visual_effect :Highlight, "divNotifier#{params[:m].to_i}" , :duration >> => 3 >> page.visual_effect :fade, "divNotifier#{params[:m].to_i}", :duration => 2, >> :delay => 10 >> >> >> works only the first time, another press on the submit_tag for the >> remote_form doesnt work... >> >> i dont see it >> anyone? >> thx >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Ruby on Rails: Core" group. >> To post to this group, send email to rubyonrails-core@googlegroups.com. >> To unsubscribe from this group, send email to >> rubyonrails-core+unsubscribe@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/rubyonrails-core?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Core" group. > To post to this group, send email to rubyonrails-core@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-core+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-core?hl=en. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
hi, following code: page.replace_html "divNotifier#{params[:m].to_i}", "Notification email got sent out!" page.visual_effect :Highlight, "divNotifier#{params[:m].to_i}" , :duration => 3 page.visual_effect :fade, "divNotifier#{params[:m].to_i}", :duration => 2, :delay => 10 works only the first time, another press on the submit_tag for the remote_form doesnt work... i dont see it anyone? thx -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
you''re hiding the div when you use the fade effect. so the next time you submit the form, the div is changed but it''s hidden. try showing the div before the highlight effect. On Thu, Feb 17, 2011 at 2:25 AM, tom <tomabroad-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> hi, > > following code: > > page.replace_html "divNotifier#{params[:m].to_i}", "Notification email got > sent out!" > page.visual_effect :Highlight, "divNotifier#{params[:m].to_i}" , :duration > => 3 > page.visual_effect :fade, "divNotifier#{params[:m].to_i}", :duration => 2, > :delay => 10 > > > works only the first time, another press on the submit_tag for the > remote_form doesnt work... > > i dont see it > anyone? > thx > > > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. >-- ------------------------------------------------------------- visit my blog at http://jimlabs.heroku.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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.