Hi
i have a main window, when i click popups on this window its opens a new window(it is a modalDialog window).on this there is one more link named export, when we click that export button that, the content of the popup window will be downloaded in pdf format. it is working fine, now my question is.when we click export its ask dilog window like open/save/cancel. when we click open buton that document will be opend successfuly in pdf format. NOw when we click save button the document was saved successfully in given path but back end its gives a Internet explorer script error like "object doesn't support the property or method"
here when we click export button its call saveas.jsp file thru
java script function like
function export
{
s=window.showModalDialog(saveas.jsp, "export", 'set the requird properties here');
if (s)
document.location.replace(s);
}
the saveas.jsp file contains options like in which format document download like 1. pdf 2. excel the user select choose the one option and click ok button its calls download.jsp file
the saveas.jsp file contain these below function.
function down
{
var downLoadURL="<%=request.getContextPath()%>"+"/Download.jsp";
var pdf=downLoadURL+"?reportName="+temp_baag+"&format="+doption;
window.returnValue=pdf;
self.close();
}
here when we are using window.returnValue = pdf, then the following location is going back to calling window.
from that window to iam using documet.location.replace(pdf);
suppose iam using document.location.replace(PDF) is using at the place of window.returnValue=pdf, then iam not getting that object doesn't support error but when we use document.location.replace(pdf) its opens in new browser window, but our client not needed to open extra window.
so can u help me there is any solution to download documet with out opend new window or how to solve the above error.
so help me ass soon as possible.
Thanking for Advance.
deva