Hello. I am having trouble running JSPs in a for loop in my JavaScript code.
My goal is to send a large results set from JavaScript to a JSP that can write the results to a text file. I send the results from JavaScript to JSP by changing the location of a hidden frame to the JSP URL with parameters included (parent.BlankFrame.location = test.jsp?RESULTS=[results]).
Due to length limits for a URL, I can’t send the entire results set at once. Therefore, I have to parse the results into a size that a URL can handle and send them to the JSP in chunks.
To do this, I have a for loop which puts the chunks of results into an array. I then send each part of the array to my JSP (parent.BlankFrame.location = test.jsp?RESULTS=resultsArray[x]).
When running my code, only the first chunk gets sent to the JSP. Strangely, if I put alerts in my for loop, all chunks of the results are transferred to the JSP. However, I would like all chunks transferred without alerts.
If anyone has any ideas or suggestions I would greatly appreciate it. Thank you.