function updateOrder(node) { try { //alert(Sortable.serialize('THELIST')); var opt = { method: 'post', postBody: '&page=&category=&action=reorder&xrand=' + (new Date().valueOf()) + '&'+ Sortable.serialize('THELIST'), onSuccess: function(t) { if (t.responseText.length > 5) { try { // ignore the response... // eval(t.responseText); } catch (e) { // Occurs when bug has been closed, user no longer sees that bug // and another user exits that bug... alert("Error: " + e.name + " " + e.message); } } else { alert("responseText:"+t.responseText); } } } new Ajax.Request('',opt); } catch (e) { // not going to happen... alert("Exception: " + e.name + " " + e.message); } } try { alert("This reorder page is obsolete. Scriptaculous replaced with jQuery now"); if ($('THELIST') != undefined ) { Sortable.create('THELIST', { tag: 'TR', handle: 'handle', dropOnEmpty: true, constraint: false, onUpdate: updateOrder, format: /^(.*)$/ } ); var someNodeList = $('THELIST').getElementsByTagName('SPAN'); var nodes = $A(someNodeList); nodes.each( function(node){ if (node.className == "handle") { node.style.cursor = "move"; } }); } } catch (e) { // not going to happen... alert("Exception: " + e.name + " " + e.message); }