AJAX Drag and Drop

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
supermike
Forum Contributor
Posts: 193
Joined: Tue Feb 28, 2006 8:30 pm
Location: Somewhere in the Desert, USA

AJAX Drag and Drop

Post 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.
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Re: AJAX Drag and Drop

Post by VladSun »

There are 10 types of people in this world, those who understand binary and those who don't
User avatar
Jonah Bron
DevNet Master
Posts: 2764
Joined: Thu Mar 15, 2007 6:28 pm
Location: Redding, California

Re: AJAX Drag and Drop

Post 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>
 
Post Reply