Newbie: page. rjs stuff

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’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 [email protected] wrote:


You received this message because you are subscribed to the Google G.
“Ruby on Rails: Talk” group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs