Re: [ACFUG Discuss] Problem with XML

2006-12-28 Thread Szwedo . Ed

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: discussion@acfug.org 
 [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:

  
  
              
               #boardsSold#
               #bootsSold#
               #bindingsSold#
              
  
  

  #toString(xmlobject)#

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

  
              
               314
               1675
               83
              

  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

-




pic12353.gif
Description: GIF image


Re: [ACFUG Discuss] Problem with XML

2006-12-28 Thread Andrew Powell
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 PowellSenior Consultant e-mail: [EMAIL PROTECTED] p: 404.806.5868c: 404.384.0166f:  678.302.4310www.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 XMLdocument.  However, the request.responseXML property is blank.  I CANfind the XML document in response.responseText.  Any ideas as to whyrequest.responseXML is blank?Here is the code that creates the XML:                         #boardsSold#             #bootsSold#             #bindingsSold#            #toString(xmlobject)#And here are the contents of request.responseText as returned by theserver:                         314             1675             83            Again, when I try to display request.responseXML via an "alert( )", Iget "request.responseXML is "Thanks again.--Ed SzwedoWeb Development Team LeadCSCE-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.edituserformFor more info, see http://www.acfug.org/mailinglistsArchive @ http://www.mail-archive.com/discussion%40acfug.org/List hosted by http://www.fusionlink.com- 

[ACFUG Discuss] Problem with XML

2006-12-28 Thread Szwedo . Ed
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:




 #boardsSold#
 #bootsSold#
 #bindingsSold#




#toString(xmlobject)#

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



 314
 1675
 83


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
-





Re: [ACFUG Discuss] Problem with XML

2006-12-27 Thread Szwedo . Ed
Sweet !  That did it.

Thanks.

ed

--
Ed Szwedo

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



 Douglas Knudsen
   To 
 Sent by: discussion@acfug.org  
 [EMAIL PROTECTED] cc 

Subject 
 12/27/2006 04:03 Re: [ACFUG Discuss] Problem with  
 PM   XML   


  Please respond
to  
 [EMAIL PROTECTED]   
   .org 






Looks like you have CF debugging on.  Try turning it off for this page
with



DK
On 12/27/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
wrote:
  I'm reading the O'Reilly book "Head Rush Ajax", and in Chapter 6, they
  use XML to send back more than one piece of information from the
  server.
  The problem is, all the examples use PHP.  I was attempting to convert

  the PHP page that returned the XML response to a CFML page.  A basic
  step towards this goal is to generate an XML document that I can then
  send back  The code that I wrote as an exercise will then retrieve the
  XML document from the responseXML property of the request object and
  extract the information I need.  So again, first step is to be able to
  return an XML document in response to my Ajax request.


  ed
  --

  Ed Szwedo

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



   Teddy Payne
   < [EMAIL PROTECTED]
   il.com>
  To
   Sent by: discussion@acfug.org
   [EMAIL PROTECTED]
  cc


  Subject
   12/27/2006 03:34 Re: [ACFUG Discuss] Problem with

   PM   XML


Please respond
  to
   [EMAIL PROTECTED]
 .org






  I also got the same error, but it depends on what you want to do with
  the XML.  What are you looking to learn from the snippet?

  Are you trying to get child nodes, attributes or values?

  Teddy


  On 12/27/06, [EMAIL PROTECTED] <[EMAIL PROTECTED] >
  wrote:
This example is straight from the O'Reilly book "Programming
ColdFusion
MX" by Rob-Brooks-Bilson, but I can't get it to work.




   
 
   Pere Money
   President
 
 
   Aaron Ridge
   Analyst
 
 
   Martin Grant
   Manager
 



#toString(myXml)#

When I browse the page from within Homesite, and when I navigate to
the
page with IE, I get the following error:


"The XML page cannot be displayed


Cannot view XML input using XSL style sheet. Please correct the
error and then click the Refresh button, or try again later.


End tag was not expected at this location. Error processing
resource
' http://rtfustst.rtp.epa.gov/webteam/Practice/chapter0...


 the code, it looks like perfectly good XML.





Any suggestions?





ed








  --


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
-






  --
  
  Adobe Certified ColdFusion MX 7 Developer
  Atlanta CFUG (ACFUG): http://www.acfug.org
  -
  To unsubscribe from this list, manage your profile @
  http://www.acfug.org?fa=login.edituserform

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

Re: [ACFUG Discuss] Problem with XML

2006-12-27 Thread Douglas Knudsen

Looks like you have CF debugging on.  Try turning it off for this page with



DK
On 12/27/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:


I'm reading the O'Reilly book "Head Rush Ajax", and in Chapter 6, they
use XML to send back more than one piece of information from the server.
The problem is, all the examples use PHP.  I was attempting to convert
the PHP page that returned the XML response to a CFML page.  A basic
step towards this goal is to generate an XML document that I can then
send back  The code that I wrote as an exercise will then retrieve the
XML document from the responseXML property of the request object and
extract the information I need.  So again, first step is to be able to
return an XML document in response to my Ajax request.


ed
--
Ed Szwedo

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



 Teddy Payne
 <[EMAIL PROTECTED]
 il.com> To
 Sent by: discussion@acfug.org
 [EMAIL PROTECTED] cc

Subject
 12/27/2006 03:34 Re: [ACFUG Discuss] Problem with
 PM   XML


  Please respond
to
 [EMAIL PROTECTED]
   .org






I also got the same error, but it depends on what you want to do with
the XML.  What are you looking to learn from the snippet?

Are you trying to get child nodes, attributes or values?

Teddy


On 12/27/06, [EMAIL PROTECTED] <[EMAIL PROTECTED] >
wrote:
  This example is straight from the O'Reilly book "Programming
  ColdFusion
  MX" by Rob-Brooks-Bilson, but I can't get it to work.

  
  
  
 
   
 Pere Money
 President
   
   
 Aaron Ridge
 Analyst
   
   
 Martin Grant
 Manager
   
  
  

  #toString(myXml)#

  When I browse the page from within Homesite, and when I navigate to
  the
  page with IE, I get the following error:


  "The XML page cannot be displayed


  Cannot view XML input using XSL style sheet. Please correct the
  error and then click the Refresh button, or try again later.


  End tag was not expected at this location. Error processing
  resource
  ' http://rtfustst.rtp.epa.gov/webteam/Practice/chapter0...


   the code, it looks like perfectly good XML.





  Any suggestions?





  ed







  --

  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
  -






--

Adobe Certified ColdFusion MX 7 Developer
Atlanta CFUG (ACFUG): http://www.acfug.org
-
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 FusionLink
-



-
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
-







--
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?



-
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
-



Re: [ACFUG Discuss] Problem with XML

2006-12-27 Thread Szwedo . Ed
I'm reading the O'Reilly book "Head Rush Ajax", and in Chapter 6, they
use XML to send back more than one piece of information from the server.
The problem is, all the examples use PHP.  I was attempting to convert
the PHP page that returned the XML response to a CFML page.  A basic
step towards this goal is to generate an XML document that I can then
send back  The code that I wrote as an exercise will then retrieve the
XML document from the responseXML property of the request object and
extract the information I need.  So again, first step is to be able to
return an XML document in response to my Ajax request.


ed
--
Ed Szwedo

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



 Teddy Payne
 <[EMAIL PROTECTED]   
 il.com> To 
 Sent by: discussion@acfug.org  
 [EMAIL PROTECTED] cc 

Subject 
 12/27/2006 03:34 Re: [ACFUG Discuss] Problem with  
 PM   XML   


  Please respond
to  
 [EMAIL PROTECTED]   
   .org 






I also got the same error, but it depends on what you want to do with
the XML.  What are you looking to learn from the snippet?

Are you trying to get child nodes, attributes or values?

Teddy


On 12/27/06, [EMAIL PROTECTED] <[EMAIL PROTECTED] >
wrote:
  This example is straight from the O'Reilly book "Programming
  ColdFusion
  MX" by Rob-Brooks-Bilson, but I can't get it to work.

  
  
  
 
   
 Pere Money
 President
   
   
 Aaron Ridge
 Analyst
   
   
 Martin Grant
 Manager
   
  
  

  #toString(myXml)#

  When I browse the page from within Homesite, and when I navigate to
  the
  page with IE, I get the following error:


  "The XML page cannot be displayed


  Cannot view XML input using XSL style sheet. Please correct the
  error and then click the Refresh button, or try again later.


  End tag was not expected at this location. Error processing
  resource
  ' http://rtfustst.rtp.epa.gov/webteam/Practice/chapter0...


   the code, it looks like perfectly good XML.





  Any suggestions?





  ed







  --

  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
  -






--

Adobe Certified ColdFusion MX 7 Developer
Atlanta CFUG (ACFUG): http://www.acfug.org
-
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 FusionLink
-



-
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
-





Re: [ACFUG Discuss] Problem with XML

2006-12-27 Thread Teddy Payne

I also got the same error, but it depends on what you want to do with the
XML.  What are you looking to learn from the snippet?

Are you trying to get child nodes, attributes or values?

Teddy


On 12/27/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:


This example is straight from the O'Reilly book "Programming ColdFusion
MX" by Rob-Brooks-Bilson, but I can't get it to work.




   
 
   Pere Money
   President
 
 
   Aaron Ridge
   Analyst
 
 
   Martin Grant
   Manager
 



#toString(myXml)#

When I browse the page from within Homesite, and when I navigate to the
page with IE, I get the following error:


"The XML page cannot be displayed


Cannot view XML input using XSL style sheet. Please correct the
error and then click the Refresh button, or try again later.


End tag was not expected at this location. Error processing
resource
'http://rtfustst.rtp.epa.gov/webteam/Practice/chapter0...


 the code, it looks like perfectly good XML.





Any suggestions?





ed







--
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
-







--

Adobe Certified ColdFusion MX 7 Developer
Atlanta CFUG (ACFUG): http://www.acfug.org



-
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
-



[ACFUG Discuss] Problem with XML

2006-12-27 Thread Szwedo . Ed
This example is straight from the O'Reilly book "Programming ColdFusion
MX" by Rob-Brooks-Bilson, but I can't get it to work.


  
  

  
Pere Money
President
  
  
Aaron Ridge
Analyst
  
  
Martin Grant
Manager
  
  


#toString(myXml)#

When I browse the page from within Homesite, and when I navigate to the
page with IE, I get the following error:

   
 "The XML page cannot be displayed 
   
   
 Cannot view XML input using XSL style sheet. Please correct the   
 error and then click the Refresh button, or try again later.  
   
   
 End tag was not expected at this location. Error processing   
 resource  
 'http://rtfustst.rtp.epa.gov/webteam/Practice/chapter0... 
   
   
  the code, it looks like perfectly good XML. 
   
   
   
   
   
 Any suggestions?  
   
   
   
   
   
 ed
   






--
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
-