Forum: Ruby on Rails Re: updating the dom - Solution

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.
Steve O. (Guest)
on 2006-04-03 01:25
(Received via mailing list)
Easy solution. I am using the behaviour.js package. Using this, the
solution
was to apply a Behaviour.apply(); command when the XMLHttpRequest() is
complete. So my solution was to use the form_remote_tag properties to
help
me call this like such:

link_to_remote("questions",
              :url => { :action => 'curator_questions', :uid =>
curator.id,
:tid => @curators.id },
              :update => "curator_question_container",
              :complete => "Behaviour.apply();")
Steve
http://www.smarkets.net
This topic is locked and can not be replied to.