Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Advanced Techniques / May 2006



Tip: Looking for answers? Try searching our database.

Need Assistance

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
credev - 29 May 2006 13:12 GMT
Hello, anyone knows how to capture a cfxml  object in javascript to be able to play with it on the client side?

thank you
Fernis - 29 May 2006 21:00 GMT
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>
Adam Cameron - 30 May 2006 17:35 GMT
Google "AJAX".

Signature

Adam

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.