1.1 --- a/examples/Common/Configurator/Resources/scripts/XSLForms.js Thu Jul 14 00:32:07 2005 +0000
1.2 +++ b/examples/Common/Configurator/Resources/scripts/XSLForms.js Thu Jul 14 00:32:31 2005 +0000
1.3 @@ -1,5 +1,9 @@
1.4 function requestUpdate(url, fieldName, targetName, targetFieldNames, elementPath) {
1.5 - var xmlhttp = Sarissa.getXmlHttpRequest();
1.6 +
1.7 + // Note that XMLHttpRequest access may be denied if Mozilla believes that
1.8 + // this resource's URL and the supplied URL are different.
1.9 +
1.10 + var xmlhttp = new XMLHttpRequest();
1.11 xmlhttp.open("POST", url, false);
1.12
1.13 // Find the value of the controlling field.
1.14 @@ -40,7 +44,7 @@
1.15 // Parse the result document.
1.16
1.17 var newDocument = Sarissa.getDomDocument();
1.18 - newDocument.loadXML(xmlhttp.responseText);
1.19 + newDocument = (new DOMParser()).parseFromString(xmlhttp.responseText, "text/xml");
1.20
1.21 // Find the definition of the affected field in the result document.
1.22