I am facing thread issue in my application follow are the summary of the issue
: root cause of the code
document.strikeoffForm.submit();
window.open('<%= baseURL %>/jsps/makeStrikeOffs/Print.jsp', "printStrikeoff");
its happening because of Asynchronous call. the issue is I am doing like this,
submitting form
opening new window to show the submitted value.
But some time before submiting a form the 2 action happened beacuse of Asynchronous call.
All I want is how can I order things as once first call is finished than only second call of window open should happen. Because of this issue the window doesn't get proper values.
I think the solution in Ajax but I am not aware how to do.