No, the XHR2 "send" method is specified to always send FormData objects as multipart / form-data.
As the ampersand suggests, one option would be to use the jquery.couch.js plugin built into every instance of CouchDB in Futon.
If you like a more general, general HTTP interface, Fermata also supports URL encoded requests:
fermata.json(document.myForm.action).put({'Content-Type':"application/x-www-form-urlencoded"}, {...form fields...});
Another option is to send JSON to your update function (which I assume is the action URL of your form).
Of course, the trick with any of them is that you have to extract the form fields yourself, since there is no simple equivalent to the DOM level new FormData(document.myForm) , which returns an object instead of AFAIK.
natevw
source share