Hi. Pretty new to jquery, but have gotten some ajax working - my
question is, is it normal that the serialize does not send the value
of the submit button itself? If so, why is that?

It caused me all sorts of problems, as my php code responds to various
HTML post requests based on the value of the submit button (e.g. add,
delete, or view commands).  The jquery serialize was sending the other
fields OK, but my php server program was just ignoring each request,
based on the missing value of submit.  Seems odd that the submit
button would be treated differently.

My work around is to have the server php code look for "missing"
submit values and falling back on an additional hidden text field I
had to add to the forms called "command".  It does let me treat ajax
posts and normal HTML posts differently, a slight advantage in my
case, but I can't find anything on teh web or my jquery books that
warns people of this difference...

Thanks for any advice (especially if I am doing something really
stupid :-)
Jamie

Reply via email to