From: Richard B. <ric...@us...> - 2001-11-08 10:29:51
|
Update of /cvsroot/dynapi/dynapi/tests In directory usw-pr-cvs1:/tmp/cvs-serv15115 Added Files: drag_forms.html Log Message: added this forms in drag layers bugtest --- NEW FILE --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Untitled</title> <script language="Javascript" type="text/javascript" src="../src/dynapi.js"></script> <script language="Javascript" type="text/javascript"> <!-- DynAPI.setLibraryPath('../src/lib/'); DynAPI.include('dynapi.api.*'); DynAPI.include('dynapi.event.*') //--> </script> <script language="Javascript" type="text/javascript"> <!-- DynAPI.onLoad=function() { lyr = new DynLayer(null,50,50,250,200,'red'); lyr.setHTML('drag me <form>'+ '<input type="text" value="text">'+ '<input type="button" value="submit">'+ '<textarea name="ta" cols=20 rows=3>textarea textarea textarea textarea textarea textarea textarea</textarea>'+ '</form>'); listener = new EventListener(); listener.ondragend=function(e) { if (is.ns4 && is.platform=="win32") e.getSource().setHTML(e.getSource().getHTML()); } lyr.addEventListener(listener); DynAPI.document.addChild(lyr); DragEvent.enableDragEvents(lyr); DragEvent.setDragBoundary(lyr); }; //--> </script> </head> <body bgcolor="#ffffff"> </body> </html> |