...

Drag and Drop

anandraj
11-13-2002, 04:20 AM
Hi All,
Is it possible to do drag and drop across frame using DHTML. If it works for IE5+ then its OK and one more Question If i drag a object from the explorer and drop it in the Browser Can i track that object. Any Article on these things will be helpfull for me.

Thanks in Advance.

Anandraj.A.

beetle
11-13-2002, 03:48 PM
Uh, my inclination is to say "No" and "No".

About drag-dropping across frames. Doesn't sounds too ludicrous right? I mean, all the frames are in one browser window, right? Now ask if you could drag-drop across two separate browser windows. Seems a bit more far-fetched, doesn't it? The two are essentially the same thing, but I won't say it's impossible because I don't know for sure.

I can say without much hesitation, however, that anything dropped onto IE by windows explorer cannot be tracked/read/stopped/whatever in any way shape or form. MAYBE with an HTA, but even then my speculations are high.

jkd
11-13-2002, 04:50 PM
IE5.5 and above have window.createPopup()

This creates an object that can appear outside of the webbrowser, and hence can be dragged across frames, etc.

Membie
11-25-2002, 09:51 PM
Originally posted by beetle
...Now ask if you could drag-drop across two separate browser windows. Seems a bit more far-fetched, doesn't it? ....

This is (IE) possible. ;) See for your self / I saw this at http://www.microbians.com/

(Choose ''Projects", subject ''Drag across windows'').

beetle
11-25-2002, 11:07 PM
Originally posted by Membie


This is (IE) possible. ;) See for your self / I saw this at http://www.microbians.com/

(Choose ''Projects", subject ''Drag across windows''). Freaky....

joh6nn
11-26-2002, 02:24 AM
that's pretty cool, but it's not dragging between windows.

it's using two windows, that have the same page loaded in them. when you click one window, it says to the other one: " pay attention, and do as i do" .

so, short answer: not really, but you could fake it, but that'd be a lot of work.

long answer is if you wanted to drag and drop items from one frame to another, based on this method, you would have to have every dragable item, present in both frames. ie, if you have a picture in frame1, that you want to drag to frame2, then that picture has to be coded into both frames. in frame1, when you click on it, you tell frame2 to pay attention to the mouse coordinates in frame1. when the mouse coordinates are such, that the picture should be starting to show in frame2, then frame2 changes the visibility ( or display ) style of the picture in frame2, and starts moving it based on the mouse coordinates in frame1.

brothercake
12-16-2002, 03:07 AM
or you could go with the createPopup idea - something like, click on an object and its node contents are copied and written into a superimposed popup, while the original node is removed.

When you let go in the other frame, the opposite happens



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum