Hello, anyone knows how to capture a cfxml object in javascript to be able to play with it on the client side?
thank you
I'm not an expert on this, but it just came in my mind... what about saving the
XML object into a file (using toString and <cffile>) , and then loading it with
javascript as an XML object? Maybe <a target=_blank
class=ftalternatingbarlinklarge
href="http://www.xml.com/pub/a/2005/02/09/xml-http-request.html">http://www.xml.
com/pub/a/2005/02/09/xml-http-request.html</a> could offer some more help.
The ScareCrow - 30 May 2006 00:18 GMT
More info would help. What do you want to do ?
Ken
credev - 30 May 2006 10:06 GMT
well on page load i have a cfxml which is building an xml Document, xmlDoc
after the page loads user might want to add new elements to that object and at
the end i would like to transform that xmlDoc to html in an Iframe....
i guess i didnt make it clear... anyway i need somthing like
function getXMLDoc()
{
return <cfoutput>#xmlDoc#</cfoutput>;
}
in javascript to be able to do this in the iframe
<script>
var theXml = window.parent.getXMLDoc();
//var theXml = window.parent.xmlDoc;
var theXsl = new ActiveXObject("Microsoft.XMLDOM")
theXsl.async = false;
theXsl.load("logistique.xsl")// Transform
document.write(theXml.transformNode(theXsl));
</script>