Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Downloaded file from Firefox but it is not opening in the internet explorer

more options

1. I have java script file where it will download the content to a xml file . Below is the java script code

  // "data:application/octet-stream," + encodeURIComponent(content);
   var dataURL = "data:application/octet-stream," + encodeURIComponent(textToEncode);
       window.location.assign(dataURL); // To change the current page
2. when we are trying to open downloaded xml file in internet explorer  through the javascript it is throwing Type Error : Access denied .    But, when we open the xml in notepad++ and re- save it is able to open in internet explorer. 
   below is java script code to open the xml file - 
if (window.ActiveXObject) {
           xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
           xmlDoc.async = false;
           xmlDoc.load(fname);  // fname refers to the file path where we downloaded
           return (xmlDoc);
       }

i am not able to resolve the problem .can you please help me on this . Thanks in Advance

1. I have java script file where it will download the content to a xml file . Below is the java script code // "data:application/octet-stream," + encodeURIComponent(content); var dataURL = "data:application/octet-stream," + encodeURIComponent(textToEncode); window.location.assign(dataURL); // To change the current page 2. when we are trying to open downloaded xml file in internet explorer through the javascript it is throwing Type Error : Access denied . But, when we open the xml in notepad++ and re- save it is able to open in internet explorer. below is java script code to open the xml file - if (window.ActiveXObject) { xmlDoc = new ActiveXObject("Microsoft.XMLDOM"); xmlDoc.async = false; xmlDoc.load(fname); // fname refers to the file path where we downloaded return (xmlDoc); } i am not able to resolve the problem .can you please help me on this . Thanks in Advance

Chosen solution

Try to set the browser.download.manager.scanWhenDone pref to false on the about:config page to suppress zone information (ADS).

Skaityti atsakymą kartu su kontekstu 👍 2

All Replies (5)

more options

The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information. Note: This will cause you to lose any Extensions, Open websites, and some Preferences.

To Reset Firefox do the following:

  1. Go to Firefox > Help > Troubleshooting Information.
  2. Click the "Reset Firefox" button.
  3. Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
  4. Firefox will open with all factory defaults applied.


Further information can be found in the Refresh Firefox - reset add-ons and settings article.

Did this fix your problems? Please report back to us!

more options

After restoring also still i am having the same issue .

 Input from my side is - when i  am trying to open the downloaded xml file in the internet explorer  it is throwing error -'Your Current security settings does not allow this file to be downloaded - but after opening the same xml in notepad++ with out changing anything if i resave then the same xml is opening in internet explorer i predict that while saving is i am missing any setting in javascript can you please check the code what i have updated previously.
more options

Chosen Solution

Try to set the browser.download.manager.scanWhenDone pref to false on the about:config page to suppress zone information (ADS).

more options

Thank you so much :) . It is working fine now

Now i want to do the same through the javascript code where the application is running . Can you please let me know is there any registry entry for this or javascript code for this . Thanks in advance .

more options

I need that setting to be applied when we are launching the application and on close of the application i need to reset to the old . Can we able to do the same in the java script .please help thanks :)