473,748 Members | 7,377 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to open "SaveAs" dialog box in Firefox browser?

1 New Member
Hi,

Am unable to open javascript SaveAs dialog box in Firefox browser. Following is the script,

<a href="javascrip t:void(0);" onclick="docume nt.execCommand( 'SaveAs',false, '*.xyz');">Save this page</a>

The above script works fine in IE. Can anyone please let me know how do I make the SaveAs dialog box open in Firefox browser.

Thanks,
Sanjay
Sep 18 '06 #1
2 10893
acoder
16,027 Recognized Expert Moderator MVP
execCommand("sa veas") is not supported in Firefox.
May 13 '08 #2
pronerd
392 Recognized Expert Contributor
It is generally a bad idea to try and include direct local access as part of your web app program design. There are a lot of restrictions on doing local access, and for good reason. The execCommand() function only works in IE, and only if the user's security settings are low enough.

If you have access to the server side logic you can send a request for the file to the server, and then have the server set the HTTP Response MIME type to a made up value like "applicatio n/unknown" that will get the browser to open a dialog box to save the file.
May 15 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
7930
by: lir | last post by:
Hi, I am trying to save a fram in a page using the execCommand("saveas") the html is save currectly but I can not save the gif on that page. How can I save the fram with the gif via execCommand("saveas"). I would like the user to choose where to put the file on his/her loca hard drive. Thanks, Liro - li
7
10104
by: Jeffrey A. Voigt | last post by:
?? Is there an easy solution to this? Thanks, - J
0
5439
by: OutdoorGuy | last post by:
Greetings, I have the code below where I am instantiating Excel and then attempting to the save the new workbook (as "Test.xls"). However, on the line of code that attempts to save the workbook, I receive the following error message: "Object reference not set to an instance of an object." Any ideas as to what I am doing wrong? .
3
1606
Coldfire
by: Coldfire | last post by:
Hello, The issue is: I have a webpage that displays image in img tag while taking its src from a remote url ( dynamically). Now, my client want this functionality to ask for "Save at any location" routine when someone clicks on the image so that user can avoid right-click saveas. Platform: xp/asp.net2.0/web-application PLz help asap
4
4216
by: GavReynolds | last post by:
Hi All! I am using Javascript to export some content in a popup (in this case, just 5 simple words) to a text file. This works fine and the user can save the text file. Upon opening the file, it appears to be just a basic text file, however, i encounterd a problem importing this into flash (thats another story!). The text file needs to consist of just a line of text for the import (ie. word1=hello&word2=world), this is how it appears in...
6
22971
by: mrobinson86 | last post by:
Hey guys, wondered if anybody could help me out with a pretty simple piece of code that has been driving me crazy for the past few days? I am trying to create a client side self sustaining message board system using basic DHTML to keep all of my colleges up to date. I have successfully built functions to control the posting of messages, but as I try to create a method which completes an overwrite/save as command over the same html file I...
7
4028
by: chakriroxx | last post by:
hi all, i have a question related to document.execCommand(saveAs). i need to know the path of the file selected by the user in the saveAs dialog box. i need to make some changes to the saved file. if not a direct way is there any work around way to find the location of the file saved?
0
9367
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9319
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9243
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8241
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6795
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6073
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4599
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2780
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2213
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.