aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes trying to save a file using 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 » Engineering » HTML, CSS and JavaScript
Bookmark "trying to save a file using javascript" Watch "trying to save a file using javascript" New topic
Author

trying to save a file using javascript

Soum Sark
Ranch Hand

Joined: May 31, 2002
Posts: 50
my code looks something like this
document.open("text/html","replace")
document.execCommand('SaveAs',false,'*.pdf')
The code invokes the file dialog with a tile of "Save HTML Document" and save as type of html & text files only. How can i put all files or *.* in the save as type dropdown ? and also can i change the title to "Save As" only ...the kind that comes up when we usually do save target as on a web page...
thanx for ur help
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
I do not think there is a way to do it...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: trying to save a file using javascript