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

Tom, this is a question for the talk list, not the core list.

ups, sorry. my mistake.

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.