i’ve been playing around w/ these things and it seems that the callback function has only one response variable..
$.post(link, $("#form").serializeArray(), sendFormResponse);
where sendFormResponse function does the magic …
however i have only 1 variable (response) to play with..
i needed at least 2
if i could get this .post method to return 2 variables:
1) status = (ok,error,adjust, etc)
2) statusMessage (or response) = (more strings)
both of w/c are generated from php side, that would be super.. coz i can evaluate what to do depending on my php’s responses..
The argument passed to the callback (or returned in the response) can be an object, which can have unlimited properties or an array containing multiple elements.