I've reviewed a lot of Drag and Drop information over the past few weeks. The piece that I'm missing is a gap between AWD's information on Drag and Drop and the Prototype and script.aculo.us book on Drag and Drop.
Question #1: In an RoR application, how can I drag and drop items without making a trip to the server? It looks like :url in drop_receiving_element creates the AJAX request. I don't want to hit the server until I'm finished creating my list. Question 2: I have a huge list that I load by category. A users selects a value from the select list and a request goes to the server and loads the items to drag and drop. Can I load the entire list on the initial page load, but only show items specific to that category without going to the server each time to get a new list? For example, let's use fruit. The entire list would be something like apple, strawberry, orange, pear, kiwi, etc. My category list would be colors - red, orange, green, etc. If I select red, the items available to drag and drop would be apple and strawberry. But I select green, the items available to drag and drop would be pear and kiwi. I don't want to go back to the database to get a new list each time the color changes. Can I do one or both of these??? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
