By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,605 Members | 2,128 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,605 IT Pros & Developers. It's quick & easy.

drag and drop image/text across frames

P: 9
Hi ,
I am trying to create a webpage. It has 3 frames (left, middle and right). I want to be able to drag images from the left and the right frame into the middle frame. Each time i try to drag an image from one frame to another , the image just disappears. Can some one please tell me how this can be done?

Jul 15 '08 #1
Share this Question
Share on Google+
4 Replies

rnd me
Expert 100+
P: 427
i would love to be wrong about this, but i don't think this can really be done.
not easily at least.

now, you could probably hand code something for just one browser, but there's no standardized way for javascript to handle this task.

most js drag and drop works by repositioning a container like a div on the screen.
that same div object cannot 'jump' into another frame or window.
it could possibly be replicated on both, and instantiated on a mouse move if button is down for the middle frame, but no easy way to "hand it off".
Jul 15 '08 #2

P: 9
I guess that means i need to redesign my application and use divs instead of frames. Thanks for the response!!

Jul 16 '08 #3

Expert Mod 15k+
P: 16,027
I much prefer divs to frames, but if you were to work with frames, you could try using importNode. Not sure how well it would work, but I'll put it out there for anyone interested.
Jul 16 '08 #4

P: 1
I know this is an old thread, but it shows up near the top for searches on drag and drop across browser frames.
Since I have a solution, I hope you don't mind me reviving an old thread.

I had the same problem of trying to drag and drop page elements from one frame to another, but didn't find anything that did this in javascript.
So, I build a library named Frame Glider for this purpose.
The post with demos is at
Links to detailed documentation is included in that post.

Oct 5 '09 #5

Post your reply

Sign in to post your reply or Sign up for a free account.