I'am submitting some data via ajax and trying to get a grasp on what's the best method for restructuring my code to work on ie9. Of course, it's submitting fine on all other browsers.
I'm using angularJS for the frontend so, the submit function is triggered like so
JS
//angular snippet
$scope.submitBrackets = function($event) {
submitVotes(roundNumber, submissionArray.toString());
}
//submit function
function submitVotes(roundNum, competitorsIDs) {
var formData = new FormData();
formData.append("roundNum", roundNum);
formData.append("competitorsIDs", competitorsIDs);
$.ajax({
url : "http://myUrl.com/form/formstuff/apiStuff",
type: "GET",
//async:false,
//Ajax events
beforeSend: function(){},
dataType: "json",
isLocal: false,
// Form data
data: "r="+roundNum+"&ids="+competitorsIDs,
//Options to tell JQuery not to process data or worry about content-type
cache: false,
contentType: false,
processData: false
});
}
Thanks for any input, suggestions.