Can someone familiar with JS please help me with something that I think will be simple.
I want to be able to pass 1 extra parm ie: catagory=widgits
into the data passed to the ajax.php, once its there I'm ready just don't know how to pass the extra variable.
thanks in advance.
<script src="js/prototype.js"></script>
<script src="js/scriptaculous.js"></script>
<script>
Event.observe(window,'load',init,false);
function init() {
Sortable.create('listContainer',{tag:'div',onUpdate:updateList});
}
function updateList(container) {
var url = 'ajax.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()}
});
}
</script>