Ok, basically I have a link that when click updates the contents of a
div tag on the same page. The link itself is actually inside the div
being updated. It looks like this:
<%= link_to_remote filename ,
:url => {:action => ''change_div'' ,
:ftp_dir =>
filename} %>
which works fine. Now I try to add some AJAX magic to it
<%= link_to_remote filename ,
:url => {:action => ''chdir'' ,
:ftp_dir => filename},
:loading => visual_effect(:toggle_slide,
''ftp_div'', :queue=>''front''),
:complete => visual_effect(:toggle_slide,
''ftp_div'', :queue=>''end'')
%>
This does not work. The div slides closed but never opens again. As I
understand it it should first slide the div closed, then alter it, then
open it again. This is on the newest stable versions of Ruby and Rails
tested with the FireFox web browser.
--
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
-~----------~----~----~----~------~----~------~--~---