Advertisement

01.13.2004 at 02:37PM PST, ID: 20850152
[x]
Attachment Details

Why do I get "Permission denied to call method XMLHttpRequest.open" using Mozilla browser?

Asked by ablazso in Miscellaneous Web Development, Windows Batch Scripting

Tags: denied, permission, call, method

In an html program I am using a script (version A) to send some XML data to a server to be processed. This, JavaScript function, posts the XML data to the server.  I slightly different script (version B) works flawlessly with IE browser.  But, why do I always get "Permission denied call to call method XMLHttpRequest.open" when I run the program with (version A) within a Mozilla browser? Am I doing something incorrectly, or, am I missing something?
.
.
.
.   ----------- (version A) -------------
<script language="javascript" type="text/javascript">
function postXML (url, xmlDocument) {
  try {
    var httpRequest = new XMLHttpRequest();
    httpRequest.open("POST", url, false);
    httpRequest.send(xmlDocument);
    return httpRequest;
  }
  catch (e) {
    alert("(Mozilla) - " + e);
    return null;
  }
}
</script>
.
.

 ---------------- (version B) ----------------------------
function postXML (url, xmlDocument) {
   var httpRequest;
   try {
      httpRequest = new ActiveXObject('Msxml2.XMLHTTP');
      httpRequest.open("POST", url, false);
      httpRequest.send(xmlDocument);
      return httpRequest;
      }
   catch (e) {
     alert("(IE) - " + e);
     return null;
     }
 

Start Free Trial
[+][-]01.13.2004 at 04:28PM PST, ID: 10109655

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.13.2004 at 04:42PM PST, ID: 10109747

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.13.2004 at 04:57PM PST, ID: 10109883

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.13.2004 at 05:22PM PST, ID: 10110072

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.13.2004 at 05:34PM PST, ID: 10110148

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.13.2004 at 05:35PM PST, ID: 10110158

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.13.2004 at 06:03PM PST, ID: 10110294

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Miscellaneous Web Development, Windows Batch Scripting
Tags: denied, permission, call, method
Sign Up Now!
Solution Provided By: tncbbthositg
Participating Experts: 5
Solution Grade: A
 
 
[+][-]01.13.2004 at 06:05PM PST, ID: 10110302

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.13.2004 at 11:04PM PST, ID: 10111555

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.14.2004 at 08:45AM PST, ID: 10112295

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.15.2004 at 05:39AM PST, ID: 10119911

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.17.2004 at 12:56PM PDT, ID: 11092310

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.17.2004 at 01:00PM PDT, ID: 11092354

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.17.2005 at 06:09AM PST, ID: 13334628

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32