This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Saveas dialog with Javascript

 
Vijay Vaddem
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I would like to invoke "Save As" dialog window using Javascript. This should
make the user to save the current page. Im able to do this for IE, however,
Im unable to find a solution for mozilla and netscape.
Can anyone help, pls....
Vijay
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you are not going to be able to do it with any of the other browsers.
 
Vijay Vaddem
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Is there any workaround for this??
Eric, please look into this........
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Best thing you can do...
if(!document.all)alert("Please use 'File Save As' from the file menu in the toolbar\n\nThank you");
 
Nathaniel Stoddard
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vijay,
The JavaScript security model precludes webpages from arbitrarily doing this sort of thing. (Be thankful!)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic