How can I create a simple drag and drop application with AJAX?

geminiyinyang

New member
I want to create an application which will use AJAX's drag and drop functionality. The application should display a set of images which when dragged to a box in another area of the page will communicate with the server via PHP functionality. This will then display a message such as 'You have added the dog image as your pet' to the user.

The application should also allow the user to remove images from the box using the same mechanism. Once a user drags and drops an image outside the box, the server should be aware of the updates and should display a message such as "<pet> is no longer your pet" to the user.

If anybody has the skills to do this, it would be very much appreciated.
 
Hello,

Does it have to be PHP? The ASP .NET AJAX control toolkit offers drag and drop functionality. I wrote a nice little class that ties right into it to make a block drag and drop system.
 
I would need to look at your code, AJAX really has no such "functionality" it simply allows you to pass data from client to server and back asynchronously. Technically what you want to do would not be ajax as you would probably want synchronous operation so that the drag and drop is executed before javascript continues.

Anyway if you want me to help, IM me.
 
Back
Top