Hi,
I have the following script:
<script src="js/prototype.js" type="text/javascript"></script>
<script src="js/scriptaculous.js" type="text/javascript"></script>
<script>
Event.observe(window,'load',init,false);
function init() {
Sortable.create('listContainer',
{tag:'div',onUpdate:updateList});
}
function updateList(container) {
var url = 'ajax_update_position.php';
var params = Sortable.serialize(
container.id);
var ajax = new Ajax.Request(url,{
method: 'post',
parameters: params,
onLoading: function(){$('workingMsg').show()},
onLoaded: function(){$('workingMsg').hide()}
});
}
function handleResponse(req) {
// this function will fire after the ajax request is
complete...but we have nothing to do here
}
</script>
I get the following error with firebug: Sortable is not defined
Any help is appreciated.
Greg