ajax
Using MochiKit doXHR with POST
This is a followup to my old post Using MochiKit doXHR using POST instead of GET.
The data that you send back in your controller will be stored in the Deferred object that gets returned. Look in the responseText field of the object.
var d = doXHR(url, { method:‘POST’, sendContent:qry, headers:{"Content-Type":"application/x-www-form-urlencoded"} });
The headers piece was the critical for the POST to work on my configuration.
Recent blog posts
- Amazon S3 Website CNAME
- Button labels for checkout
- Insert html django contrib messages
- Twitter Bootstrap not working with LESS.js
- Javascript libs that offer basic subset of jquery features
- Building the donor-matic
- Playing with free Google Map alternatives.
- Some flows are not as complicated as they appear
- Form design crib sheet
- Script to get IE9 Windows Virtual PC images into Virtual Box