Ed - 

If you are using XML like this, I would suggest you take a look at Spry on Adobe Labs.

Also, I would caution you against using CFXML, and suggest using CFSAVECONTENT in its place.  CFXML creates an XML Object which takes up more memory than a simple string.  If you use CFSAVECONTENT then you do not need to use toString() either.  If you need some Spry samples, take a look at the ones I have posted.


I will also be presenting to the CFUG on Spry and ColdFusion integration next week.  

Cheers, 

Andy


_______________________________________________
Andrew Powell
Senior Consultant 


 

p: 404.806.5868
c: 404.384.0166
f:  678.302.4310
_______________________________________________



On Dec 28, 2006, at 9:03 AM, [EMAIL PROTECTED] wrote:

OK, I can now use Ajax to return what I think is a well formed XML
document.  However, the request.responseXML property is blank.  I CAN
find the XML document in response.responseText.  Any ideas as to why
request.responseXML is blank?

Here is the code that creates the XML:

<cfoutput>
<cfxml variable="xmlobject" casesensitive="yes">
            <totals>
             <boards-sold>#boardsSold#</boards-sold>
             <boots-sold>#bootsSold#</boots-sold>
             <bindings-sold>#bindingsSold#</bindings-sold>
            </totals>
</cfxml>
</cfoutput>

<cfcontent type="text/xml"><cfoutput>#toString(xmlobject)#</cfoutput>

And here are the contents of request.responseText as returned by the
server:

<?xml version="1.0" encoding="UTF-8"?>
            <totals>
             <boards-sold>314</boards-sold>
             <boots-sold>1675</boots-sold>
             <bindings-sold>83</bindings-sold>
            </totals>

Again, when I try to display request.responseXML via an "alert( )", I
get "request.responseXML is "



Thanks again.
----------------------------------------------------------------------
Ed Szwedo

Web Development Team Lead
CSC
919-541-3955  (Voice)
919-541-3719  (Fax)



-------------------------------------------------------------
To unsubscribe from this list, manage your profile @ 

-------------------------------------------------------------






Reply via email to