title: Permission Denied Error XMLHttpRequest
body: <pre>
    <code>
      &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head&gt;
      &lt;title&gt;Calling a Web Service Using XmlHttpRequest&lt;/title&gt;
  
      &lt;script type="text/javascript" language="javascript"&gt; 
  
  var xmlhttp; 
  
  
  var XMLContent='&lt;XML ID="Transaction"&gt;&lt;Transaction&gt;'+
  '&lt;LoginDetails&gt;'+
  '&lt;Email&gt;artur&lt;/Email&gt;'+
  '&lt;Password&gt;demos2&lt;/Password&gt;'+
  '&lt;/LoginDetails&gt;'+
  '&lt;JobDetails&gt;'+
  '&lt;JobId&gt;40170978&lt;/JobId&gt;'+
  '&lt;JobRefNo&gt;prod84&lt;/JobRefNo&gt;'+
  '&lt;JobTitle&gt;'+
  '&lt;![CDATA[ Director of R&D Software product  (Multimedia)]]&gt;'+
  '&lt;/JobTitle&gt;'+
  '&lt;JobExpiry&gt;30&lt;/JobExpiry&gt;'+
  '&lt;JobContactName&gt;'+
  '&lt;![CDATA[ Brian Mc Fadden]]&gt;'+
  '&lt;/JobContactName&gt;'+
  '&lt;JobContactEmail&gt;brian.mcfadden@recruiters.ie&lt;/JobContactEmail&gt;'+
  '&lt;JobShortDesc&gt;'+
  '&lt;![CDATA[ Director of R&D Software product concepts Multimedia Web 2.0]]&gt; '+
  '&lt;/JobShortDesc&gt;'+
  '&lt;JobDetDesc&gt;&lt;![CDATA[ &lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"&gt;&lt;STRONG&gt;Director of R&amp;D Software product concepts to&lt;/STRONG&gt; &nbsp;build a the new prototyping team and processes from the ground up, utilizing an agile development model, manage the R&amp;D team develop a strong vision and be able to clearly articulate the direction the group will take in terms of methodologies and tools in technologies such as J2EE, .NET, Flash, AJAX, DHTML, JavaScript, take marketing requirements from the principal investigators and write functional requirement documents, manage budget for R&amp;D development, &nbsp;manage the projects developed by the internal team and vendors. &lt;/P&gt;  &lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"&gt;To get this new role you will have a degree in IT / Software and over 5 years plus doing cutting edge development in R&amp;D/ prototyping and leading cutting edge development teams in a software production / product environment, project management and process management skills (AGILE) and demonstrated experience working on product innovation and releases. You may be working in educational gaming, social networking, Web 2.0 applications, mobile technologies, learning management systems, online courseware or shareware.&nbsp;&lt;/P&gt;  &lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto"&gt;&nbsp;&lt;/P&gt;  &lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;The package is to &euro;105K + Bonus + VHI + Pension + relocation package where applicable + stock options may be negotiated. There are great career advancement opportunities. To discuss this and other opportunities please send an up-to-date resume to &lt;A href="mailto:brian.mcfadden@recruiters.ie"&gt;brian.mcfadden@recruiters.ie&lt;/A&gt; or call +353 1 6489113 in confidence. Your details will not be sent to any third party without your consent. &lt;/P&gt;  &lt;P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"&gt;&nbsp;&lt;/P&gt;]]&gt;'+
  '&lt;/JobDetDesc&gt;'+
  '&lt;JobSalary&gt;90000&lt;/JobSalary&gt;'+
  '&lt;JobSalaryMax&gt;105000&lt;/JobSalaryMax&gt;'+
  '&lt;JobQues1&gt;&lt;![CDATA[ ]]&gt;'+
  '&lt;/JobQues1&gt;'+
  '&lt;JobQues2&gt;&lt;![CDATA[ ]]&gt;'+
  '&lt;/JobQues2&gt;'+
  '&lt;JobQues3&gt;&lt;![CDATA[ ]]&gt;'+
  '&lt;/JobQues3&gt;'+
  '&lt;JobType&gt;0|0&lt;/JobType&gt;'+
  '&lt;JobAddnlBens&gt;17,14,23,1,5,9,12,10&lt;/JobAddnlBens&gt;'+
  '&lt;JobLocations&gt;96,98,97&lt;/JobLocations&gt;'+
  '&lt;JobEducations&gt;8&lt;/JobEducations&gt;'+
  '&lt;JobExperiences&gt;10&lt;/JobExperiences&gt;'+
  '&lt;JobCategories&gt;1043,1050&lt;/JobCategories&gt;'+
  '&lt;JobSubcategories&gt;69896,69869&lt;/JobSubcategories&gt;'+
  '&lt;/JobDetails&gt;'+
  '&lt;/Transaction&gt;'+
  '&lt;/XML&gt;';
  
  
  
  function on_click() 
  
  { 
  
  if(window.ActiveXObject)
    {
       try 
          {
          xmlhttp = new ActiveXObject('Msxml2.XMLHTTP');
  
          }
       catch (ex)
       {
        xmlhttp = new ActiveXObject('Microsoft.XMLHTTP');
  
       }
    }
   else if (window.XMLHttpRequest) 
   {
     xmlhttp = new window.XMLHttpRequest();
     netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");
   }
  
  var xmlToSend = '&lt;?xml version="1.0" encoding="utf-8"?&gt;'+
  '&lt;soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"&gt;'+ 
  '&lt;soap:Body&gt;'+
  '&lt;InsertXML xmlns="http://recpushdata.cyndigo.com/"&gt;'+
  '&lt;Jobs&gt;'+XMLContent+'&lt;/Jobs&gt;'+
  '&lt;/InsertXML&gt;'+
  '&lt;/soap:Body&gt;'+
  '&lt;/soap:Envelope&gt;';
  
  var szUrl;
  szUrl = 'http://recpushdata.cyndigo.com/Jobs.asmx?op=InsertXML';
  
  xmlhttp.onreadystatechange = state_Change; 
  
  xmlhttp.open("Post", szUrl, true); 
  
  xmlhttp.setRequestHeader ("SOAPAction", "http://recpushdata.cyndigo.com/InsertXML"); 
  
  xmlhttp.setRequestHeader ("Content-Type", "text/xml"); 
  
  xmlhttp.send(xmlToSend); 
  
  } 
  
  
  
  function state_Change() 
  
  { 
  
  // if xmlhttp shows "loaded" 
  
  if (xmlhttp.readyState==4) 
  
  { 
  
  // if "OK" 
  
  if (xmlhttp.status==200) 
  
  { 
  
  alert("OK"+xmlhttp.responseText); 
  
  } 
  
  else 
  
  { 
  
  alert("Problem retrieving XML data "+xmlhttp.responseText); 
  
  } 
  
  } 
  
  } 
  
      &lt;/script&gt;
  
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div&gt;
          &lt;h1&gt;
              Click the button to call the web service&lt;/h1&gt;
          &lt;input type="button" onclick="return on_click();" value="OK" /&gt;
      &lt;/div&gt;
      &lt;div id="responseDiv"&gt;
      &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  
    </code>
  </pre>