I have a link in my JSP page, where the user uses it for downloading an Excel File. When the user clicks on the link, the controller goes to a java script function where I display a moving image(like progress bar) and then it will be redirected to Action Classes. After executing the java code, a pop up window appears asking the user to open/save the file. As the page is not getting refreshed, the progress bar keeps on running and I am not able to hide it.
Does anyone have an idea how to resolve this using Javascript as I dont have much idea on Jquery.
Thanks in advance.
function generateRnDFootPrint(){
progressBar.showBar(); // progress bar appears
location.href='<%= contextPath %>/saveMTP.do?method=getRnDFootPrintReport&orgCode=<%=orgCode%>&orgId=<%=orgId%>';
}