Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7

Thread: Drag and Drop

  1. #1
    New Coder
    Join Date
    Oct 2002
    Location
    Bangalore,India
    Posts
    51
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Drag and Drop

    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.

  • #2
    Senior Coder
    Join Date
    Aug 2002
    Posts
    3,467
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.
    My Site | fValidate | My Brainbench | MSDN | Gecko | xBrowser DOM | PHP | Ars | PVP
    “Minds are like parachutes. They don't work unless they are open”
    “Maturity is simply knowing when to not be immature”

  • #3
    jkd
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    Location
    metro DC
    Posts
    3,163
    Thanks
    1
    Thanked 18 Times in 18 Posts
    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.

  • #4
    New Coder
    Join Date
    Nov 2002
    Location
    Netherlands
    Posts
    78
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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'').

  • #5
    Senior Coder
    Join Date
    Aug 2002
    Posts
    3,467
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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....
    My Site | fValidate | My Brainbench | MSDN | Gecko | xBrowser DOM | PHP | Ars | PVP
    “Minds are like parachutes. They don't work unless they are open”
    “Maturity is simply knowing when to not be immature”

  • #6
    Senior Coder joh6nn's Avatar
    Join Date
    Jun 2002
    Location
    72° W. 48' 57" , 41° N. 32' 04"
    Posts
    1,887
    Thanks
    0
    Thanked 1 Time in 1 Post
    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.
    bluemood | devedge | devmo | MS Dev Library | WebMonkey | the Guide

    i am a loser geek, crazy with an evil streak,
    yes i do believe there is a violent thing inside of me.

  • #7
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •