File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes savedialogbox in javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "savedialogbox in javascript" Watch "savedialogbox in javascript" New topic
Author

savedialogbox in javascript

Mohammed Javeed Basha
Greenhorn

Joined: May 22, 2012
Posts: 9
Hi Good Morning,

I want savedialog box on clicking a button in jsp page or html page,
the user would like to have a "saveas" dialog box to show up. I need to do this in javascript.


Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61419
    
  67

Mohammed Javeed Basha wrote:I want savedialog box on clicking a button in jsp page or html page,

Simply create a link tot he file to be downloaded.

I need to do this in javascript.

No you don't. JavaScript has no access to the file systems.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Arun Giridhar
Ranch Hand

Joined: Mar 10, 2012
Posts: 147

you can call confirm("sometext"); use it's return value to do some operation (you can call your webservice )


hate Professionalism . Join the http://2014.hack.lu/index.php/Main_Page
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61419
    
  67

Arun Giridhar wrote:you can call confirm("sometext"); use it's return value to do some operation (you can call your webservice ) .

This has nothing whatsoever to do with the question. the confirm() method does not initiate any sort of file saving dialog.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: savedialogbox in javascript