Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

savedialogbox in javascript

 
Mohammed Javeed Basha
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65116
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Arun Giridhar
Ranch Hand
Posts: 181
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can call confirm("sometext"); use it's return value to do some operation (you can call your webservice )
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65116
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic