Click to See Complete Forum and Search --> : Drag and Drop items between windows
anarchist
08-21-2003, 08:58 AM
I want to be able to drag an item from one window and drop into another
first question is can this be done with javascript?
second if it can be done, then can anyone point me in the direction of some good tutorials or tell me how to do this?
Khalid Ali
08-21-2003, 09:31 AM
if 2 windows are separate and have no relationship (i.e no parent child relationship) then its not possible using JavaScript.
If they do have parent child relationship then you may be able to do something linke this.
as soon as you start dragging an object you pass that info to another window and when mouse pointer comes on to the second window then recreate that object there..(its theoretically plausible..I have not done it)
anarchist
08-21-2003, 10:27 AM
thanks, sounds like it'll never work for us at the minute, as the windows will be more sister windows (ie have the same parent) but we then have framesets and it'd be items from the framesets so I guess really they'd be cousin windows
the thories sound, maybe someone will work it out one day, or the clever browser writers will add a way of doing it in future versions
but for now we'll stick with saying it cant be done
thanks again
Khalid Ali
08-21-2003, 11:23 AM
I think its not that it can not be done,the actual question probably is who has the will and knowledge to so anything like this.I know I did something like this (gosh long time ago) that dragged images from one frame to another frame.
So its deffinitely do able...