• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Need Assistance

New Here ,
May 29, 2006 May 29, 2006

Copy link to clipboard

Copied

Hello, anyone knows how to capture a cfxml object in javascript to be able to play with it on the client side?

thank you
TOPICS
Advanced techniques

Views

313

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
May 29, 2006 May 29, 2006

Copy link to clipboard

Copied

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 http://www.xml.com/pub/a/2005/02/09/xml-http-request.html could offer some more help.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
May 29, 2006 May 29, 2006

Copy link to clipboard

Copied

More info would help. What do you want to do ?

Ken

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 30, 2006 May 30, 2006

Copy link to clipboard

Copied

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>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 30, 2006 May 30, 2006

Copy link to clipboard

Copied

LATEST
Google "AJAX".

--
Adam

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation