Forum: Ruby on Rails Problem with remote updates

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Nick S. (Guest)
on 2006-01-03 01:00
(Received via mailing list)
My form_remote and link_remote tags seem to messing up and keep making
the
tag they are supposed to update, disappear completly. They'll fade out,
and
then start to fade in but then just dissappear. I think its happening
because both actions are firing at the same time on a fairly simple
request.
For example, I have a link_to_remote tag:
<%= link_to_remote 'Edit', :url => {:action => 'edit', :id =>
@customer},
:update => 'customer_detail'
:before => "new Effect.Fade('customer_detail')",
:complete => "new Effect.Appear('customer_detail')" %>

This doesn't work because it just makes the div tag not display. If I
remove
the effects, then the tag is replaced just fine, but it would be nice to
be
able to keep this in there. I've tried it opera/mozilla/firefox and all
do
the same thing.

How do you folks handle this problem? Am I not using the right status
calls?

Thanks for the help!
   -Nick
This topic is locked and can not be replied to.