I'm having trouble to get my response using Jquery Ajax. My goal is when a page loads, I want it to run the AJAX to call a JSP page and retrieve a data object (response). This getJSON.jsp page will run a java method to load a CSV file(over 100,000 rows. 30MB file) and convert it into a JSON Array which is my data object. This way is to load the file in the server side. The converting csv into JSON Array works BUT when I send a response of that JSONArray back, I receive a 'Not enough storage...' error. It didnt even send do the error function. It works when I create a csv file with 9,000 rows. I have to use IE11 standards. Please can you insist me? I've researching ways to retrieve a large amount of JSON Array object. My code is below just in case:
UPDATE: I forgot to add this. I did debug it on the ie11 Developer tool and place a breakpoint on code "console.log('begin json parse data.')". When loading the page it didnt event stop to that point. So I'm assuming that when sending a response back, 'data', is where the issue hits. There's no errors when running getJSON.jsp and Java backend.
$.ajax({
type:'post',
url: "getJSON.jsp",
success: function(data) {
console.log("begin json parse data.");
getMasterData = JSON.parse(data);
console.log("end of json parse data")
},error: function (xhr, ajaxOptions, thrownError) {
console.log("ERROR FOR AJAX getJSON stuff: " + thrownError);
},
async:false
});
Thank you