Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Drag and Drop Container question

Status
Not open for further replies.

Dashley

Programmer
Dec 5, 2002
925
US
I have a aspx page (VS2008) that has 3 drag and drop containers (Columns). Container 3 has a list of items embeded in labels (one unique item per label). The label Items are dragged to either container1 or container2. The label.ID is a number unique to the item labels text.

I want to put a save button on the form and when clicked it goes to each container and gives me a listing of which label (by id) is in which container.

I havent a clue either, though I did get the labels working dynamically and populated from a DB, HA. Can some one point me in the right direction or give me a sample how to
go through the page and find each label by conainer.

Thank You
 
How about something simple like:


Code:
var labels=document.getElementById('containerID').getElementsByTagName('label');

This should give you an array of the labels in the specified container.




----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.

Behind the Web, Tips and Tricks for Web Development.
 
I'm not sure. I'll give it a try. I'm new at JS. Usally only do VB. Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top