macromedia.coldfusion.getting_started
[Top] [All Lists]

Re: Javascript + CF XML Integration

Subject: Re: Javascript + CF XML Integration
From: "coffeedrinker56" <webforumsuser@xxxxxxxxxxxxxx>
Date: Mon, 28 Jul 2008 18:49:40 +0000 (UTC)
Newsgroups: macromedia.coldfusion.getting_started

CFXML creates an XML object despite no "<?xml ..." tag.
 CFCONTENT - note that there is no closing CFCONTENT tag - requires the 
"text/xml" type to be specified to create the XML object, but you can output a 
textual version of your output by specifying "text/text" instead.
 To load a JS variable with a value, you'd set it something like this:
 var xyz = 
myDoc.childNodes[0].getElementsByTagName("childName")[occurrence].firstChild.nod
eValue.
 ... or from an attribute:
 var xyz = 
myDoc.childNodes[0].getElementsByTagName("childName")[occurrence].getAttribute("
myAttribute");




<Prev in Thread] Current Thread [Next in Thread>