Solved

Multiple Div Drag Code

Posted on 2003-11-18
3
433 Views
Last Modified: 2008-03-10
Most of the code I've found is only for one Div and if it does support more it usually does more than I need it to such as resizing and maximizing.. Anyone know where I can find code to just be able to drag around multiple divs? thanks
0
Comment
Question by:dgelinas
3 Comments
 
LVL 11

Expert Comment

by:Zontar
Comment Utility
Why does everyone insist on using divs for such things when it's possible to work with nearly any element (img, table, ul, etc., I've used all of these in different circumstances)  in such a fashion in modern browsers?

At any rate, it's just a matter of deciding how you wish to identify the group elements to be "activated". For example, you can give them id attributes which have a common substring unique to the group, or give them a common style class that's not used with any other elements. One can also hard-code an array of element id's... Then where the initialisation code acts on a single element, you write a loop and call the function or functions with each of the element id's in turn. Post some code you like and I'll show you how to adapt it.
0
 
LVL 10

Expert Comment

by:Nushi
Comment Utility
>>just be able to drag around multiple divs

look at the main page of:
http://dhtmlcentral.com

what you will see there is few windows that can be dragged.
the code is available for free download from teh site.

Nushi.
0
 
LVL 16

Accepted Solution

by:
jaysolomon earned 250 total points
Comment Utility
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

When you need to keep track of a simple list of numbers or strings, the Array object is your most direct tool.  As we saw in my earlier EE Article (http://www.experts-exchange.com/A_3488.html), typical array handling might look like this: (CODE) B…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now