Search and Top Navigation
Ticket #4197: test.html
File test.html, 1.2 KB (added by calin.pavel, February 20, 2009 02:37PM UTC)
<!doctype html>
<html lang="en">
<head>
<title>jQuery UI Draggable - Events</title>
<link type="text/css" href="../../themes/base/ui.all.css" rel="stylesheet" />
<script type="text/javascript" src="../../jquery-1.3.1.js"></script>
<script type="text/javascript" src="../../ui/ui.core.js"></script>
<script type="text/javascript" src="../../ui/ui.draggable.js"></script>
<link type="text/css" href="../demos.css" rel="stylesheet" />
<style type="text/css">
#draggable { width: 16em; padding: 0 1em; }
#draggable ul li { margin: 1em 0; padding: 0.5em 0; } * html #draggable ul li { height: 1%; }
#draggable ul li span.ui-icon { float: left; }
#draggable ul li span.count { font-weight: bold; }
</style>
<script type="text/javascript">
$(document).ready(function() {
$("#draggable2").draggable({});
$("#draggable").draggable({});
});
</script>
</head>
<body>
<div id="draggable" class="ui-widget ui-widget-content">
<p>Parent: Drag me to trigger the chain of events.</p>
---------------------------------
<div id="draggable2" class="ui-widget ui-widget-content">
<p>Children: Drag me to trigger the chain of events.</p>
</div>
---------------------------------
</div>
</body>
</html>
Download in other formats:
Original Format
File test.html, 1.2 KB (added by calin.pavel, February 20, 2009 02:37PM UTC)
<!doctype html>
<html lang="en">
<head>
<title>jQuery UI Draggable - Events</title>
<link type="text/css" href="../../themes/base/ui.all.css" rel="stylesheet" />
<script type="text/javascript" src="../../jquery-1.3.1.js"></script>
<script type="text/javascript" src="../../ui/ui.core.js"></script>
<script type="text/javascript" src="../../ui/ui.draggable.js"></script>
<link type="text/css" href="../demos.css" rel="stylesheet" />
<style type="text/css">
#draggable { width: 16em; padding: 0 1em; }
#draggable ul li { margin: 1em 0; padding: 0.5em 0; } * html #draggable ul li { height: 1%; }
#draggable ul li span.ui-icon { float: left; }
#draggable ul li span.count { font-weight: bold; }
</style>
<script type="text/javascript">
$(document).ready(function() {
$("#draggable2").draggable({});
$("#draggable").draggable({});
});
</script>
</head>
<body>
<div id="draggable" class="ui-widget ui-widget-content">
<p>Parent: Drag me to trigger the chain of events.</p>
---------------------------------
<div id="draggable2" class="ui-widget ui-widget-content">
<p>Children: Drag me to trigger the chain of events.</p>
</div>
---------------------------------
</div>
</body>
</html>