Created
March 21, 2011 18:49
-
-
Save DCarper/879967 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $.ajax({ url: this.action+'.json', | |
| dataType: 'json', | |
| accepts: 'text/json', | |
| data: $(this).serialize(), | |
| type: 'post', | |
| success: function(data, textStatus, XMLHttpRequest) { ... }}) | |
| // this works in all browsers except IE.. when sent from IE the server thinks it's asking for a mimetype of image/gif | |
| // i have tried all combinations of including and excluding "accepts", "dataType", and adding ".json" onto the end of the form action. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment