Hi everybody- First time poster, please be gentle.
I have written a little rails app where you can create divs and move them around via Thomas' wonderful dragdrop.js. I would like to be able to fire an AJAX event to update the top and left of the dragged object upon release. I see many AJAX link_to_remote and observe_field. What is the proper way to observe that the position (not content) of a div has changed? I can think of 2 manners, but both seem antiquated compared to the techniques here: 1. put a hidden field inside the div with the top+left, updating these values upon Draggable.finishDrag, triggering an AJAX event 2. Put a whole call to AJAX.Updater inside of a new method of Draggable, called when finishDrag is nearly done. Maybe that's really 1 manner. In any event, is there a way to extend the Draggable object without modifying dragdrop.js? Can you add more methods via Draggable.prototype? Alternately, if anyone knows of a means to trigger an AJAX event in response to a purely DHTML-type event, please offer a suggestion. thanks, Jason _______________________________________________ Rails-spinoffs mailing list [email protected] http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
