similar to: Trigger ajax form submission with drop_receiving_element

Displaying 20 results from an estimated 5000 matches similar to: "Trigger ajax form submission with drop_receiving_element"

2010 May 03
0
Scriptaculous, snap draggable to droppable or revert
Hello community, I am a fairly new RoR programmer and I need some help with Scriptaculous Drag and Drop: So I have <%= draggable_element(@div_id, :revert => "failure", :snap => 5) -%> and a droppable: <%= drop_receiving_element(@team_div_id, :with => "''player='' + (element.id)+ ''&position='' + #{draft_position}"
2005 Dec 30
4
AJAX Drag and Drop Detecting Drop Coordinates
This one''s kicking me in the *(&#^. All I want to do is create a draggable item and then detect the coordinates where it is dropped. So my first approach was to just use the draggable_element with :revert => false, like so: <%= draggable_element "my_element", :revert => false %> That works great and lets me drag stuff all over the place. In the scriptaculous
2006 Mar 29
2
Multiple calls from drop_receiving_element :complete
Hi, Firstly I am very new to Ruby on Rails but think its fantastic! :o) I am trying to figure out how I can call multiple functions from the drop_receiving_element :complete. I have the following code in my index.rhtml and it works fine. It calls the javascript function "additem" that is on the page. <%= drop_receiving_element "dcwindow", :update =>
2007 Jul 26
1
Scroll Page While Dragging 'draggable_element'
Hi - I posted this on another list, but received no response, so I''m trying this one. My apologies to those who have seen this question twice. I have two columns, one of draggable elements, the other of droppable elements. These are used to add items to a particular collection. (Story :habtm ''Assets'') Column 1 (Assets) Column 2 (Stories) ==============
2006 Jul 10
1
:revert => false for Droppables
Right now I am using page.remove and page.insert for some complex nested moves in RJS. I have my draggables set to revert, but they also revert when they hit a droppable. Meaning, the draggable will start reverting for part of a second before the page.remove kicks in. Is there a way to specify :revert => false for the drop_receiving_element, or something else to that affect? -- Respectfully:
2007 Dec 05
0
difficulty with onDrop in the ruby helper method
I need to return both the draggable element id and the dropped on element id to a ruby method. I''m using the helper method drop_receiving_element, and it''s all good and well until the onDrop part. I really want to pass both id''s to the ruby method that I''m calling. Really. However, it seems like onDrop only accepts a javascript function. :url => {:action
2006 Jun 09
0
Not droppable after first drop in FF
Hi all, I have a couple of droppables in my page. Each of them looks like a list and is a <div> containing other <div> for the lines, each line formed by <span>s for different fields. Each line is declared draggable (right after each line, since ithey''re created inside a loop). I have both of them inside a <div> since I need to refresh both at the same time and
2006 Mar 17
1
How to update values in database in this form?
Hi, This is my rHtml page & Corresponding actions & model pages:- ===listform.rHtml================= <h1>Products List</h1> <%= start_form_tag(:action => "add_to_cart")%> <table> <tr> <% i=0 %> <th> Product No. </th> <th> Unit Price </th> <th> Available Qty. </th> <th> Demand Qty. </th>
2007 Nov 23
0
Restful droppable delete
I have a list of pages from which I want to delete one. This I want to do with draggable/droppable(trash can like). Which, strange enough, does not work. This does work: {{{ link_to_remote("delete", :url => project_wiki_page_path(@project, page), :method => :delete, :title =>project_wiki_page_path(@project, page)) }}} But this doesn''t: {{{ <script
2006 Feb 24
3
New to Ajax
Hello, I''m very new to ajax and was looking for advice on scriptaculous at their website and they suggested i join your mailing list, I hope that was the right thing to do, I haven''t installed ROR yet but i have downloaded the needed one-click installer which i will setup sometime soon, until such time i would like to work with scriptaculous in its native form in php files, the
2006 Feb 07
2
RE: ajax.Updater w/ JS content
Do you mean droppable.element.id? > -----Original Message----- > From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-spinoffs- > bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Louis Walch > Sent: Tuesday, February 07, 2006 11:38 AM > To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > Subject:
2005 Aug 09
1
Droppable refuse to react
Im having problems with Droppables, and read that there are some attributes on the element that must be inline. What are those? I''ve tried to copy some of the code from the shop-demo, and my code seems to have the exact same attributes and more. The problem is that the droppable refuse to react whenever I attempt to drop a draggable on it, the onDrop does''nt seem to trigger.
2006 Jan 09
2
turning revert off after being dropped
I have a container ''A'' which contains Draggables and a Droppable ''Trash''. These Draggables are set with ''revert:true''. Now, if a Draggable from ''A'' is dropped in the Trash, I don''t want it to revert, I want it to just disappear. I''ve tried using draggable.destroy() but this just prevents it from being
2006 Nov 24
1
sortable - after complete dropping element want to send ajax reqeust with id of elements: draggable and droppable
Hi all. I have specific situations - I use sortable on html list, and after I move elements I want to do ajax reqeust to serwer with the id of dragging element and id of the element that was droppable. How to do it? which function in Sortable class i have to overrider or modify? i try to modife onhover method in sortable and put a ajaxRequest call before methods dropon.parentNode.insertBefore
2006 Aug 17
3
What''s the best way to stop repeating this line in my controller?
Hi, I am trying to follow the "DRY" principle and came across a problem. I am working on a small ajax task manager, and right now in the index page which renders the list, I have (for example, in the Lists controller): def index @lists = List.find(:all) end Now within the controller there''s also a list_add action which is called via ajax.. def list_add if
2007 Jun 14
2
A more fancy autocomplete using scriptaculous and ajax
I want to create an autocomplete text field that when you type in (some of) a users name, it pops up the portrait image associated to that user on the left hand side, which can then be dragged away in to a Sortable.Droppable element adding that member to your team... I can get the results to display, but not where I want them. They are always in a list below the textbox. 1) possible? 2) Do the
2006 Jan 20
1
[protoype] Problem with Effects on draggable element if revert is true
hi, I have a draggable element (cart-item) in a shopping cart <%= draggable_element "item_#{product}_#{i}", :revert => true %> When this element is dragged outside the cart into the "main_div", I want to show a puff effect and remove the element. When it is dragged within the cart, it should revert. So i wrote this code for drop_receiving _element <%=
2007 Jun 27
1
Prototype 151; Ajax.Updater vs Ajax.Request and evalScripts=true
Why does Ajax.Updater() and Ajax.Request() differ in how evalScripts is handled? Or doesn''t it, and I just got it wrong? I have a module that generates an Ajax request to insert dynamic content into a div. The dynamic content is plain vanilla HTML with some inline javascript *functions* I cannot get the browser to honor/execute/see those javascript functions when I use .Request() If I
2006 Feb 28
0
Question abour Draggables & Droppables - my code example
hi i think my example is very simple and straightforward so i''m not sure if it meets your needs (change revert:true to revert:false from a draggable after I drop it on a droppable so it doesn''t return to its original place.) i did this # 2 divs created here <script language="javascript"> new Draggable(''drag'', {revert: false});
2007 Mar 03
1
Ajax.Updater with evalScripts: true strips curly braces
When I return an html fragment to Ajax.Updater with evalScripts: true set, and there is a script fragment with curly braces in it (a function declaration or an object literal), the curly braces are getting stripped out somehow, and leaving me with invalid JS. I think this is the case because I put an alert in the evalScripts method right before the "return eval(script)" and it had no