GeeCON Prague 2014*
The moose likes HTML, CSS and JavaScript and the fly likes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark ""Unspecified error" when trying to save file" Watch ""Unspecified error" when trying to save file" New topic
Author

"Unspecified error" when trying to save file

Jeff Byrd
Greenhorn

Joined: Feb 16, 2005
Posts: 3
I am trying to let the user Save a CSV 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.
Linda Walters
Ranch Hand

Joined: Apr 30, 2005
Posts: 100
You might try running with the Firefox browser with the JavaScript Console extension installed. After installing the console and restarting Firefox, open the console by selecting Tools from the menu bar and then clicking on JavaScript Console. This will open the console in another window and it will trap and log all errors. Then run your code and look for the error(s) in the console. The location of the error will be given and you can click it to go to the offending code.


<a href="http://labryssystems.net/pblog/index.php" target="_blank" rel="nofollow">Javaville Gazette</a><br />Non-cooperation with evil is a duty. -- Mahatma Gandhi
Jeff Byrd
Greenhorn

Joined: Feb 16, 2005
Posts: 3
Thank you for your reply, but the problem is it works just fine in both Firefox and Netscape. So I am unable to trap the error in those browsers.
Jeff Byrd
Greenhorn

Joined: Feb 16, 2005
Posts: 3
I figured out the issue. Thanks for your help.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
You may want to post what the issue was so if someone finds this post in the future can find an answer.

Eric
 
 
subject: "Unspecified error" when trying to save file