Two Laptop Bag*
The moose likes HTML, CSS and JavaScript and the fly likes  javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark " javascript" Watch " javascript" New topic
Author

javascript

Vicky Mohan
Ranch Hand

Joined: Oct 14, 2004
Posts: 130
I have issues in providing the option to user to open / save dialog box .

I generate a Excel file through JReports and then redirect to a JSP page.

After displaying the contents of the JSP, i need to give the User the Option to open / save the file i generated.

I have the URL to the file in my JSP.

DO let me know if i can do this through Java Script.

Thanks in advance for your help.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
IE only has
window.execCommand("SaveAs", true, "filename");
Eric
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: javascript
 
Similar Threads
how to format word file in Internet explorer
listening to windows dialogue events in javascript
Problem downloading a file
saving the excel file is a specific location
Popup - File Download