The following function is used as the onsubmit handler for a form: // ------------------------------------------------------------------------------------------- function checkCPForm1(theform) { if(ValidateCPForm(theform)){ var data = $(theform).serialize(); alert("data: " + data); // DEBUG GLOBAL $.ajax({ type: theform.method, url: theform.action, data: $(theform).serialize(), datatype: 'html', success: function(html){$('#dynamic_content').html(html)}, error: function(XMLHttpRequest,textStatus,error){ alert("ERROR:\n" + textStatus, + "\n" + error) } }); return false; } else return false; } // ----------------------------------------------------------------------------------------- Not all the form data is included in the data string. What _is_ missing is 1)the name and value for the submit button itself. In traditional CGI programming, I've found that names and values for submit buttons are always sent. And I've gotten used to strategies where more than one submit button is included in a form 2)The name and value for a radio button _when_ the button is named 'someType' as in 'licenseType'. If the name is changed to say, 'license_type', data is transmitted as expected.
I've encountered this problem with another ajax library, so I don't think this is particular to jquery. Any comments are welcome. Pointers to relevant documents, RFCs, dicussions welcome as well. thanks tim