Google Answers Logo
View Question
 
Q: java script drag and drop ( No Answer,   4 Comments )
Question  
Subject: java script drag and drop
Category: Computers > Internet
Asked by: ruggles-ga
List Price: $5.00
Posted: 01 Jun 2002 07:12 PDT
Expires: 08 Jun 2002 07:12 PDT
Question ID: 20058
How can I drag and drop across frames?

Clarification of Question by ruggles-ga on 01 Jun 2002 07:21 PDT
I need a sloution that works for all popular browsers

Request for Question Clarification by missy-ga on 01 Jun 2002 07:49 PDT
Hi ruggles,

At this time, only IE supports drag and drop across frames (though
I've not been able to find a script for it yet):

http://www.microsoft.com/windows2000/techinfo/reskit/en/ierk/Ch01_e.htm

Are you sure you don't want to try it with tables instead? There are
several drag and drop engines available that work with virtually any
browser and tables, with the exception of NS6.

missy-ga

Clarification of Question by ruggles-ga on 01 Jun 2002 08:23 PDT
I think we need to use frames.  I am trying to do something similar to
exchange 2000s web mail.  Are you familar with thw way it allows you
to drag mail into folders?

Request for Question Clarification by missy-ga on 01 Jun 2002 11:34 PDT
Hi ruggles, 

No, I'm afraid I'm not.

I did create a new frameset in CoffeeCup HTML, and set it up with the
drag and drop engines I use for "Doll Creator" pages.  Splitting the
elements between the frames to test it out showed that attempting to
drag an object from one frame to another resulted in the object
"disappearing".  It resolutely refused to hop frames.  Several
modifications and different D&D engines yielded the same results.

Perhaps another researcher has some Exchange 2000 expertise - I'm at
the end of my drag and drop knowledge here.  I'm sorry.  I hope
someone else will be able to give you a hand.

missy-ga

Request for Question Clarification by j_philipp-ga on 01 Jun 2002 13:31 PDT
Hello Ruggles,

you can simulate the "look-and-feel" of frames using stylesheets
(absolute positioning of CSS2), within a single frame-less window. You
can also implement drag-and-drop for at least Internet Explorer
easily, using ondrag and ondrop events with client-side JavaScript/
VBScript. (Only a server-side scripting solution however would assure
you'd stay completely cross-browser compatible.)

If you need IE5+ and frameless specific help, I'd be glad to help out;
I could show you how to implement drag-and-drop of a "Windows
Explorer" style folders/ documents tree.
Answer  
There is no answer at this time.

Comments  
Subject: Re: java script drag and drop
From: xemion-ga on 01 Jun 2002 23:01 PDT
 
Just to back missy and k_philipp up, I would have to agree that drag
and drop across frames is a bad idea (mainly cause it won't work ;-). 
I would stick with tables or css.  I personally find cross-browser
problems with css though, tables are just plain easier.

xemion-ga
Subject: Re: java script drag and drop
From: mplungjan-ga on 02 Jun 2002 11:56 PDT
 
And here is one
http://www.webreference.com/dhtml/column7/
Subject: Re: java script drag and drop
From: mplungjan-ga on 02 Jun 2002 12:26 PDT
 
someone with more time than me have a play with this?:

fset.html:
<frameset rows="50%,*">
<frame name="from" src="from.html">
<frame name="to" src="to.html">
</frameset>

from.html:
<a href="test.html">Drag this</a>

to.html:
<script>

function mydrop(e) {
f=''; for (i in e) f += '\n<br>'+i+':'+e[i];
f +='\n<br><hr><b>target:</b><br>'
for (i in e.target) f += '\n<br>'+i+':'+e.target[i];
top.frames[0].document.write(f);
top.frames[0].document.close();
return false

}
window.ondragdrop=mydrop;
</script>

<body >
Drop here
Subject: Re: java script drag and drop
From: crosenblum-ga on 14 Jun 2002 14:22 PDT
 
perhaps it might be possible to allow you to pass objects between frames..

perhaps the better question is what are you trying to do with drag and drop?

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy