Skip to main content

Search and Top Navigation

Ticket #5727: defaultIframe.html
File defaultIframe.html, 0.9 KB (added by bgrins, June 14, 2010 03:17PM UTC)

Test case: put into /demos/draggable to run

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8" />
	<title>jQuery UI Draggable - Default functionality</title>
	<link type="text/css" href="../../themes/base/jquery.ui.all.css" rel="stylesheet" />
	<script type="text/javascript" src="../../jquery-1.4.2.js"></script>
	<script type="text/javascript" src="../../ui/jquery.ui.core.js"></script>
	<script type="text/javascript" src="../../ui/jquery.ui.widget.js"></script>
	<script type="text/javascript" src="../../ui/jquery.ui.mouse.js"></script>
	<script type="text/javascript" src="../../ui/jquery.ui.draggable.js"></script>
	<link type="text/css" href="../demos.css" rel="stylesheet" />
	<script type="text/javascript">
	function initDraggable() {
		$("#test").contents().find("#draggable").draggable();
	}
	</script>
</head>
<body>
<div class="demo">
<iframe id="test" src='iframe.html' onload='initDraggable();' width='400' height='400'></iframe>
</body>
</html>

Download in other formats:

Original Format