Getting "Unspecified" Java Script Error When trying to save a File.
Suresh KumarS
Greenhorn
Joined: Dec 18, 2008
Posts: 7
posted
0
I am trying to let the user Save a XML file using the File Download dialog box. When the user clicks "Open", the file opens just fine. When the user clicks "Save" instead of "Open", it creates a javascript "Unspecified error". However, the file still downloads just fine. But then there is the error on the page that prevents anymore javascript from running. I have put a try{}..catch() around all of my code, but I still get the error. Does anyone know what is going on? Thanks.
No i'm not using any Java Script to download. The Page has a data table from which user can select an element and export it. I wrote a Servlet to export the object into XML File. In the servlet doGet method i'm using ServletOutputStream to perform the operation.
Suresh KumarS
Greenhorn
Joined: Dec 18, 2008
Posts: 7
posted
0
I forget to mention this. I'm facing this problem only with IE in Windows 2000 Professional. In XP no problem.
Bauke Scholtz
Ranch Hand
Joined: Oct 08, 2006
Posts: 2458
posted
0
I rather mean, is there any Javascript in for example the onclick attribute of the download button?
Suresh KumarS
Greenhorn
Joined: Dec 18, 2008
Posts: 7
posted
0
No JavaScript for the Export Button. I'm using JSF so using action attribute of <h:commandButton></h:commandButton> to call a Java Method which will call call the servlet to export the object in xml format.
Bauke Scholtz
Ranch Hand
Joined: Oct 08, 2006
Posts: 2458
posted
0
You should have mentioned that before.
Which JSF implementation/version are you using? How does the HTML output of that h:commandButton look like?
Suresh KumarS
Greenhorn
Joined: Dec 18, 2008
Posts: 7
posted
0
I'm using MyFaces 1.1.5. Sorry for the late reply...