• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

"Unspecified error" when trying to save file

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Jeff Byrd
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I figured out the issue. Thanks for your help.
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You may want to post what the issue was so if someone finds this post in the future can find an answer.

Eric
 
When all four tires fall off your canoe, how many tiny ads does it take to build a doghouse?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic