Created
October 28, 2009 01:41
-
-
Save flazz/220159 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script> | |
<script type="text/javascript" src="js/jquery-ui-1/js/jquery-ui-1.7.2.custom.min.js"></script> | |
<script type="text/javascript" charset="utf-8"> | |
$(document).ready(function() { | |
//load_q(); | |
$("#queue").sortable(); | |
$("#queue").disableSelection(); | |
$('#queue').bind('sortbeforeStop', function(event, ui) { | |
alert("integration will ask the server to move elements") | |
}); | |
$.each(["foo", "bar", "baz", "eta"], function(i, item) { | |
$("<li/>").text(item).appendTo("#queue").addClass("item"); | |
}); | |
}); | |
// load the queue | |
// function load_q() { | |
// url = "http://localhost:4567/q" | |
// $.getJSON(url, function(data) { | |
// $.each(data.items, function(i, item) { | |
// $("<div/>").text(item.data).appendTo("#queue"); | |
// }); | |
// }); | |
// } | |
</script> | |
</head> | |
<body> | |
<h1>lé queue</h1> | |
<ul id="queue"> | |
</ul> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment