Hi Scott (and others),
Thanks for all the posts and help ! It actually did make some sense in
the end :).
The success message was based on AJAX success function, so that was
part of the confusion. It was giving me a success message but not
actually doing anything. Changing 'serial.hash' to be 's
Chris,
The hash idea that the other site was talking about is what I was telling
you in my previous post. I do this all the time:
function myFunction(email){
var args = {};
args.name = $('#nameid').val();
args.location = $('#locationid').val();
args.email = email;
args.someStringLi
Chris Jones wrote:
The hash was a suggestion on another site. I have tried it without it as
well but no joy. If I alert the "serial" on success I get what I would
expect ie. item[]=2&item[]=3&item[]=10
> [ ... ]
> data: serial.hash or data: serial, = nothing gets updated.
> data: "name=John&lo
Hi Scott,
The hash was a suggestion on another site. I have tried it without it as
well but no joy. If I alert the "serial" on success I get what I would
expect ie. item[]=2&item[]=3&item[]=10
At the moment the "updatesql.php" file is simply setup so if the page is
called it connects to the d
yeah, the other method of passing data via ajax is:
...
url: "myurl.php",
type: "post",
data: {"variablename":"value", "variablename2":someJSValue},
...
you could declare an object that contains your arguments that you want to
pass in to updatesql.php like this:
var args = {}
args.name = "John"
a
Chris Jones wrote:
$(document).ready(function(){
$("#list").sortable({
accept: 'item',
update: function(sorted) {
serial = $('#list').sortable('serialize');
$.ajax({
url:"updatesql.php",
type:"POST",
dat
6 matches
Mail list logo