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
posted
0
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
posted
0
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
posted
0
I figured out the issue. Thanks for your help.
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15357
6
posted
0
You may want to post what the issue was so if someone finds this post in the future can find an answer.
Eric
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.
subject: "Unspecified error" when trying to save file