AJAX Drag and Drop
Moderator: General Moderators
-
supermike
- Forum Contributor
- Posts: 193
- Joined: Tue Feb 28, 2006 8:30 pm
- Location: Somewhere in the Desert, USA
AJAX Drag and Drop
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
There are 10 types of people in this world, those who understand binary and those who don't
- Jonah Bron
- DevNet Master
- Posts: 2764
- Joined: Thu Mar 15, 2007 6:28 pm
- Location: Redding, California
Re: AJAX Drag and Drop
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>