View Single Post
Light Poster
13Mar2009,20:04  
Naash's Avatar
My attachment is a timetable where names can be dropped to any of the white cells.

It has got 3 buttons :

1) NEXT - Takes user to next week

2) CURRENT - Takes user to present week

3) RESET - All the white cells should be emptied of the dragged names.

I have made a function dragDropResetForm for resetting the white cells (starts at line no. 447 in my latest attachment)
Code:
  function dragDropResetForm()
    {
        var mainContainer = document.getElementById('dhtmlgoodies_mainContainer');
        var uls = mainContainer.getElementsByTagName('UL');
        for(var no=0;no<uls.length;no++)
            dhtmlgoodies_listOfItems.appendChild(uls[no]);            
    
    }
dhtmlgoodies_mainContainer ---> white cells
dhtmlgoodies_listOfItems ---> name list (last column)

Obviously, it doesn't run.
Plz help !

Last edited by shabbir; 13Mar2009 at 20:39.. Reason: Attachment Removed