Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jQuery, ajax request doesn't success with JSON on IE
- $.ajax({
- url: 'js/jquery.desobbcode.json',
- dataType: 'json',
- cache: false,
- success: function(json) {
- alert('ok');
- },
- error: function(xhr, errorString, exception) {
- alert("xhr.status="+xhr.status+" error="+errorString+" exception="+exception);
- }
- });
- xhr.status=200
- error=parsererror
- exception=SyntaxError Unterminated string constant
- $.ajax({
- url: 'js/jquery.desobbcode.json',
- dataType: 'json',
- contentType: "application/json; charset=utf-8",
- ...
- });
- $.ajax({
- url: 'js/jquery.desobbcode.json',
- dataType: 'json',
- contentType: "application/json; charset=utf-8",
- data: {}
- ...
- });
- {"inputButton":[{"id":"desoBBCode_bold","value":"Gras","tag":"b"},{"id":"desoBBCode_italic","value":"Italique","tag":"i"},{"id":"desoBBCode_underline","value":"Souligné","tag":"u"},{"id":"desoBBCode_image","value":"Image","tag":"img"},{"id":"desoBBCode_link","value":"Lien","tag":"url"},{"id":"desoBBCode_quote","value":"Citation","tag":"quote"}],"selectTextSize":[{"text":"Taille","value":""},{"text":"Trèstrèspetit","value":"1"},{"text":"Trèspetit","value":"2"},{"text":"Petit","value":"3"},{"text":"Gros","value":"4"},{"text":"Trèsgros","value":"5"},{"text":"Trèstrèsgros","value":"6"}],"selectTextColor":[{"text":"Couleur","value":"a"},{"text":"Rouge","value":"red"},{"text":"Bleu","value":"blue"},{"text":"Vert","value":"green"}]}
Add Comment
Please, Sign In to add comment