ActionView::Helpers::ScriptaculousHelper

drop_receiving_element

Description

drop_receiving_element(element_id, options = {})


Makes the element with the DOM ID specified by element_id receive dropped draggable elements (created by draggable_element). and make an AJAX call By default, the action called gets the DOM ID of the element as parameter.

Examples:
  1. <%= drop_receiving_element("my_cart", :url => { :controller => "cart", :action => "add" }) %>

You can change the behaviour with various options, see script.aculo.us for more documentation.

User Contributed Notes add

No comments