...

View Full Version : A drag and drop example from a clueless coder



newmand2
12-27-2007, 11:51 PM
I'd like to take the following JavaScript (http://cyberdummy.co.uk/test/dd.php) and limit the list items to their groups - so the list items may move vertically, but not between groups.

Since the blog entry seems pretty out-dated and un-answered, I was hoping someone in here might be able to give me an insight.

Cheers, Dave

vwphillips
12-28-2007, 11:04 AM
Coordinate.prototype.reposition = function(element) {
element.style["top"] = this.y + "px";
// element.style["left"] = this.x + "px";
}

newmand2
12-28-2007, 12:09 PM
I hate to sound unappreciative, but that is far from being helpful. Where would this code go? How would it stop the user from switching list items from one group to another?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum