Thanks!  I also discovered  that I can access the XML via
request.responseXML.xml


ed
----------------------------------------------------------------------
Ed Szwedo

Web Development Team Lead
CSC
E-mail: [EMAIL PROTECTED]
919-541-3955  (Voice)
919-541-3719  (Fax)


                                                                       
             Andrew Powell                                             
             <[EMAIL PROTECTED]                                          
             om>                                                     To
             Sent by:                 [email protected]             
             [EMAIL PROTECTED]                                         cc
                                                                       
                                                                Subject
             12/28/2006 09:27         Re: [ACFUG Discuss] Problem with 
             AM                       XML                              
                                                                       
                                                                       
              Please respond                                           
                    to                                                 
             [EMAIL PROTECTED]                                          
                   .org                                                
                                                                       
                                                                       




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.

http://www.infoaccelerator.net/SpryPreso/
http://www.infoaccelerator.net/sprySamples/

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

Cheers,

Andy


_______________________________________________
Andrew Powell
Senior Consultant
e-mail: [EMAIL PROTECTED]


(Embedded image moved to file: pic12353.gif)


p: 404.806.5868
c: 404.384.0166
f:  678.302.4310
www.universalmind.com
_______________________________________________



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
      E-mail: [EMAIL PROTECTED]
      919-541-3955  (Voice)
      919-541-3719  (Fax)



      -------------------------------------------------------------
      To unsubscribe from this list, manage your profile @
      http://www.acfug.org?fa=login.edituserform

      For more info, see http://www.acfug.org/mailinglists
      Archive @ http://www.mail-archive.com/discussion%40acfug.org/
      List hosted by http://www.fusionlink.com
      -------------------------------------------------------------








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

To unsubscribe from this list, manage your profile @ 

http://www.acfug.org?fa=login.edituserform



For more info, see http://www.acfug.org/mailinglists

Archive @ http://www.mail-archive.com/discussion%40acfug.org/

List hosted by http://www.fusionlink.com

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


Attachment: pic12353.gif
Description: GIF image

Reply via email to