[Rails-spinoffs] dragging and dropping with scriptaculous

2006-02-11 Thread Adam Duston
i want to be able to drag divs and drop them onto other divs. i want the behavior to be as follows: if the draggable div is released too far away from one of the droppable divs, then it goes back to its original position. however, if it is sufficiently close to one of the droppable divs then it mov

[Rails-spinoffs] Re: Sortable + Draggable : doesn't follow the mouse horizontally

2006-02-11 Thread Alain Ravet
Robin > Yes, use the constraints options of Sortable.create When I do that (see below) the list is no longer sortable : when I drop an element, it goes back to its original location, and the associated actin is not triggered. (Complete view code is at the bottom of this message. I place

Re: [Rails-spinoffs] JSON and scriptaculous

2006-02-11 Thread Kevin Old
Ed, On 2/11/06, Ed C. <[EMAIL PROTECTED]> wrote: > Just include the ( and ) parens in your X-JSON header string. Yes, that will work, but it's a hack. Looking a all of the documentation for the definition of JSON data, the parens are no where to be seen. Kevin -- Kevin Old [EMAIL PROTECTED] ___

Re: [Rails-spinoffs] Error in prototype.js? / Enumerable.each

2006-02-11 Thread Todd Ross
On 2/11/06, smi <[EMAIL PROTECTED]> wrote: > You're awesome! That fixed my bug, It's working for me now. I know you didn't file the ticket, but I would encourage you to add a comment to the ticket that the patch resolved your problems with the $$() function including what browsers you were able to

Re: [Rails-spinoffs] Error in prototype.js? / Enumerable.each

2006-02-11 Thread smi
Hi Todd! You're awesome! That fixed my bug, It's working for me now. Thanks Michael Todd Ross schrieb: On 2/9/06, smi <[EMAIL PROTECTED]> wrote: I am using the latest version of prototype.js from the SVN, including the wonderful $$ operator to loop through a number of elements with a certain

[Rails-spinoffs] Re: sorting with D&D follows the link(browser thinks I click)

2006-02-11 Thread Alain Ravet
Gregory > I think making a clickable item draggable is begging for problems. No, it's just striving for simplicity and obviousness. With "In place edit" and "sortable list", you can replace 3 pages by 1, without adding any control or icon or whatever on the page. What's the alternative: se