Page 1 of 1

AJAX Drag and Drop

Posted: Fri Jan 18, 2008 10:51 pm
by supermike
I've got some understanding of AJAX/JSON now, where I can update a select and have another select react to that. I can also post a comment to the database without refreshing a page. But one area I'm slightly uncertain of is how to create a drag and drop experience. I mean, I think I might be able to get it, but want to see your examples. In general I need something like a way to drag articles to folders, or catalog items to a shopping cart. Please give me URLs and a place to check out your PHP. Thanks.

Re: AJAX Drag and Drop

Posted: Sat Jan 19, 2008 8:49 am
by VladSun

Re: AJAX Drag and Drop

Posted: Sat Jan 19, 2008 3:27 pm
by Jonah Bron
Maybe...

Code: Select all

 
<div onmousedown="var x = true;" onmouseup="x = false;">hello, world</div>
<div onmouseover="if(x==true)this.onmouseup=function(){do something with something}">Drag "hello world" here!</div>