daveVk

msg:4430234 | 5:03 am on Mar 17, 2012 (gmt 0) |
The same javascript should work for both php and perl. The results will be returned as part of the GET or preferably POST request. How you extract the results (get or post parameters) on the server will differ. Change the .php in the url to whatever perl expects.
|
rugrat

msg:4430697 | 1:20 am on Mar 19, 2012 (gmt 0) |
Trial and more error I'm using the following javascript along with the scriptaculous.js and prototype.js: <script type="text/javascript"> function updateOrder(){ var options = { method : 'post', parameters : Sortable.serialize('firstlist') }; new Ajax.Request('g2.pl', options); } Sortable.create('firstlist', {constraint:'vertical', onUpdate : updateOrder}); </script> What would be the variable names getting passed through the post method? Seems no matter what I try I can't get the variable values returned.
|
daveVk

msg:4430736 | 6:13 am on Mar 19, 2012 (gmt 0) |
new Ajax.Request('g2.pl', options); This results in the parameters being sent in the body of the post rather than as part of the url. So either read the post body on the server or change to new Ajax.Request('g2.pl?list='+encodeURIComponent(Sortable.serialize('firstlist')), options);
|
|