Update of /cvsroot/dynapi/dynapi/tests
In directory usw-pr-cvs1:/tmp/cvs-serv1019
Added Files:
drag_frames.html _drag_frame2.html _drag_frame1.html
Log Message:
Added drag_frames.html, which allows testing of EnableDragEvents across frames.
--- NEW FILE ---
<HTML><HEAD><TITLE>Dragging Frame Example</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4616.200" name=GENERATOR></HEAD><FRAMESET border=0
frameSpacing=0 frameBorder=0 cols=50%,50%><FRAME name=frame1
src="_drag_frame1.html"><FRAME name=frame2
src="_drag_frame2.html"></FRAMESET></HTML>
--- NEW FILE ---
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4616.200" name=GENERATOR></HEAD>
<BODY></BODY></HTML>
--- NEW FILE ---
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<SCRIPT language=JavaScript src="../src/dynapi.js"></SCRIPT>
<SCRIPT language=Javascript>
DynAPI.setLibraryPath('../src/lib/');
DynAPI.include('dynapi.api.*');
DynAPI.include('dynapi.event.*')
</SCRIPT>
<SCRIPT language=Javascript>
DynAPI.onLoad=function() {
myLayer1 = new DynLayer('dragLyr1',50,50,175,75,'#0000FF');
myLayer2 = new DynLayer('dragLyr2',50,50,175,75,'#FF0000');
DynAPI.document.addChild(myLayer1);
DragEvent.enableDragEvents(myLayer1);
DragEvent.setDragBoundary(myLayer1);
DynAPI.document2=DynAPI.addChild(new DynDocument(parent.frame2));
DynAPI.document2.addChild(myLayer2);
DragEvent.enableDragEvents(myLayer2);
DragEvent.setDragBoundary(myLayer2);
myLayer3 = new DynLayer('dragLyr3',50,150,175,75,'#00FF00');
DragEvent.enableDragEvents(myLayer3,DynAPI.document2);
//DragEvent.setDragBoundary(myLayer3);
DynAPI.document2.addChild(myLayer3);
};
</SCRIPT>
</HEAD>
<BODY><B>Issue :</B> This document is a frameset (drag_frame.htm),<BR>with two
documents loaded in it.<BR><BR>All the dynAPI code is in
_drag_frame1.html (this page).<BR>_drag_frame2.html is
empty.<BR>In the enableDragEvents code in DynAPI 2.55a file dragevents.js is
flawed, as it doesn't allow adding a dragevent to another frame. <BR>
This page tests it.
<BR>If the dynlayer has been created, it gets the dyndocument
from the dynlayer, without passing it in the enableDragEvents function.
<BR><BR><B>Problems :</B> In IE5.5, and to a lesser extent Mozilla, (win2000)
dragging is repeated when the mouse moves over the second frame during dragging.
NS4 works fine. </BODY></HTML>
|