Hi everyone,

I am writing a ruby on rails application, and making heavy use of AJAX calls and evaluate_remote_response. In my remote responses I often have several update_element_function calls going on, to update several divs on the page.

What I am doing is calling update_element_function, with the content as a block. Inside the block I usually have html, or make calls to other partials or components. This all works great. The problem I am having seems to come when I try to make this content draggable using draggable_element. For instance, I have a component that gets rendered when the user firsts loads the page and it is draggable and it drags just fine. Then when the user makes a selection to some options on the page, it makes an AJAX call and uses update_element_function to re-render the component using the same exact render_component call that was used when the page was first loaded. But when the call is made through the update_element_function it is like the draggable_element script does not get executed and none of the draggable stuff is actually draggable... in both IE and Firefox.

Hopefully this makes sense, does anyone have any advice? Thanks.

-Tom

_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to