Dragging Forms and Layers: form controls on a layer : Draggable Layer « Ajax Layer « JavaScript DHTML

Home
JavaScript DHTML
1.Ajax Layer
2.Data Type
3.Date Time
4.Development
5.Document
6.Dojo toolkit
7.Event
8.Event onMethod
9.Ext JS
10.Form Control
11.GUI Components
12.HTML
13.Javascript Collections
14.Javascript Objects
15.Javascript Properties
16.jQuery
17.Language Basics
18.Mochkit
19.Mootools
20.Node Operation
21.Object Oriented
22.Page Components
23.Rico
24.Scriptaculous
25.Security
26.SmartClient
27.Style Layout
28.Table
29.Utilities
30.Window Browser
31.YUI Library
JavaScript DHTML » Ajax Layer » Draggable Layer 
Dragging Forms and Layers: form controls on a layer


http://dynapi.sourceforge.net/
GNU LESSER GENERAL PUBLIC LICENSE
Version 2.1, February 1999
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Dragging Forms & Layers</title>
<script language="Javascript" type="text/javascript" src="./dynapisrc/dynapi.js"></script>
<script language="Javascript" type="text/javascript">

dynapi.library.setPath('./dynapisrc/');
dynapi.library.include('dynapi.api');
dynapi.library.include('DragEvent')

//-->
</script>
<script language="Javascript" type="text/javascript">
  lyr = new DynLayer(null,50,50,250,200,'red');
  lyr.setHTML('drag me <form>'+
        '<input type="radio" value="1" name="r1" checked>'+
        '<input type="radio" value="1" name="r1">'+
        '<input type="checkbox" value="1"><br>'+
        '<input type="text" value="text">'+
        '<input type="button" value="submit">'+
        '<input type="image" name="myimage" src="./dynapisrc/ext/images/debug_imgreload.gif">'+
        '<textarea name="ta" cols=20 rows=3>textarea textarea textarea textarea textarea textarea textarea</textarea>'+
        '<br><img src="./dynapiexamples/images/arrowdown.gif" width=50 height=50></form>');

  dynapi.document.addChild(lyr);

  DragEvent.enableDragEvents(lyr);
  DragEvent.setDragBoundary(lyr);
</script>
</head>
<body bgcolor="#ffffff">
Issue: Unable to scroll or select text in some browsers (e.g. IEwhen drag events are 
enabled on the layer
Try scrolling or selecting text within the text boxes

</body>
</html>

           
       
dynapi.zip( 791 k)
Related examples in the same category
1.Drag and Snap (SnapX)
2.Layer drag event
3.Dragging Large Child Layers
4.Relative Layers : Drag & drop example
5.Inline layer drag and drop
6.Draggable Layers
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.