PDA

View Full Version : drag n save



midhul
02-06-2008, 11:15 AM
Can i please know how to drag n save an object.

For example i have a code a -- &nbsp&nbsp<img src="some.gif">&nbsp&nbsp --
when the user drags the image and drops it at another place the code should
become -- &nbsp&nbsp&nbsp&nbsp<img src="some.gif"> --

like an automtic changing code. this is usually present in visual ide's.

codeexploiter
02-06-2008, 12:04 PM
Check the following links

Drag and Drop from DD (http://www.dynamicdrive.com/dynamicindex11/domdrag/index.htm)


http://developer.yahoo.com/yui/dragdrop/

midhul
02-07-2008, 10:45 AM
Thank you for the sites, but i am not able to use them in my code
can u plaes show me an example

codeexploiter
02-07-2008, 10:51 AM
Hi Midhul,

From the above link I've provided you can find a number of examples and notes about using those drag and drop feature in your page

http://developer.yahoo.com/yui/examples/dragdrop/

This link will give you all the examples of drag and drop

midhul
02-07-2008, 10:58 AM
Yeah but it does not provide what i wanted.
i want it to be saved after dragging like it is done in ides