# HG changeset patch # User paulb # Date 1121301151 0 # Node ID 25fb15562a0f59516bdbe201dfc8d1d24a4a7407 # Parent fc3f9060bbb021fa507ffe6cef9154bcf84cfd2f [project @ 2005-07-14 00:32:31 by paulb] Updated to Sarissa 0.9.6 API, adding a note about Mozilla privilege restrictions. diff -r fc3f9060bbb0 -r 25fb15562a0f examples/Common/Configurator/Resources/scripts/XSLForms.js --- a/examples/Common/Configurator/Resources/scripts/XSLForms.js Thu Jul 14 00:32:07 2005 +0000 +++ b/examples/Common/Configurator/Resources/scripts/XSLForms.js Thu Jul 14 00:32:31 2005 +0000 @@ -1,5 +1,9 @@ function requestUpdate(url, fieldName, targetName, targetFieldNames, elementPath) { - var xmlhttp = Sarissa.getXmlHttpRequest(); + + // Note that XMLHttpRequest access may be denied if Mozilla believes that + // this resource's URL and the supplied URL are different. + + var xmlhttp = new XMLHttpRequest(); xmlhttp.open("POST", url, false); // Find the value of the controlling field. @@ -40,7 +44,7 @@ // Parse the result document. var newDocument = Sarissa.getDomDocument(); - newDocument.loadXML(xmlhttp.responseText); + newDocument = (new DOMParser()).parseFromString(xmlhttp.responseText, "text/xml"); // Find the definition of the affected field in the result document.