Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Multiple Div Drag Code

Posted on 2003-11-18
3
Medium Priority
?
461 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 11

Expert Comment

by:Zontar
ID: 9771033
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
ID: 9771172
>>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 750 total points
ID: 9771265
0

Featured Post

Build and deliver software with DevOps

A digital transformation requires faster time to market, shorter software development lifecycles, and the ability to adapt rapidly to changing customer demands. DevOps provides the solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my daily work (mainly using ASP.net), I need to write a lot of JavaScript code. One of the most repetitive tasks I do are the jQuery Ajax calls. You know: (CODE) I don't know if for you it's the same, but for me is soooo tedious to write the …
Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
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…

722 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