I\'d like to make an ajax call as a POST, it\'s going to go to my servlet. I want to send parameterized data, like the following:
var mydata = \'param0=some_
If you have a form, you can also do var data = jQuery("#myForm").serialize(); which puts it in a form that jQuery.ajax can understand and use. Otherwise, use the object literal described in Nick's answer.
var data = jQuery("#myForm").serialize();
jQuery.ajax