i am facing a problem related to save as dialog box.
i've written the below code in the
jsp page mentioned in the window.open to open an xml file.
response.setContentType("text/xml;charset=UTF-16");
response.setHeader("Content-Disposition","attachment; filename=\""+Constants.ReportName.CUSTOMER_DRAWING_NUMS+"\"");
before opening the xml file, a save as dialog box is appearing. when i click on the save as dialog box, xml file is getting saved but the window is not getting closed automatically.
so, i changed the code by replacing attachment with inline as follows:
response.setContentType("text/xml;charset=UTF-16");
response.setHeader("Content-Disposition","inline; filename=\""+Constants.ReportName.CUSTOMER_DRAWING_NUMS+"\"");
now, save as dialog box is not coming and the xml page is opening.
Please let me know, how the save-as dialog box should come and on saving the popup should be closed.