Re: Returning XML data via a CFC?

2005-05-24 Thread Donnie Bachan
Pete, As Sean noted in his post, the return value is encoded as a WDDX packet. You will need to use the WDDX deserializer object to unencode the string. In your js function that handles the data once the XMLHTTP request has returned you can use an alert to see the raw packet, this way you will kno

Re: Returning XML data via a CFC?

2005-05-24 Thread Sean Corfield
On 5/24/05, Pete Ruckelshaus <[EMAIL PROTECTED]> wrote: > I get back a blank page. There is some whitespace (CR/LF's, tabs). If you return a value from a CFC, it's only useful if you call it from other CF code. If you attempt to call it via the browser as you are doing, then the Servlet API encod

Re: Returning XML data via a CFC?

2005-05-24 Thread Pete Ruckelshaus
Dave, I get back a blank page. There is some whitespace (CR/LF's, tabs). No error messages. Donnie, I'm trying to access the CFC directly and return XML data so that I can use it in an xmlhttp.request transaction to populate some form fields, sort of like Google suggest. Thanks Pete ~~~

Re: Returning XML data via a CFC?

2005-05-24 Thread Donnie Bachan
Pete, What are you doing with the XML once it is returned via the CFC? Are you returning for the javascript to manipulate it or is the javascript going to write it directly to the page? -- Donnie Bachan Website: http://www.islandwizards.com Blog: http://angrytrini.blogspot.com "Nitendo Vinces -

Re: Returning XML data via a CFC?

2005-05-24 Thread Dave Carabetta
On 5/24/05, Pete Ruckelshaus <[EMAIL PROTECTED]> wrote: > Dave C, > > Thanks, but I was unable to get that to work when calling it via URL. > At this point I'm more focused on "getting it to work" than I am on > "CFC best practices", and getting it to work isn't, well, working. > Macromedia's docs

Re: Returning XML data via a CFC?

2005-05-24 Thread Pete Ruckelshaus
Dave C, Thanks, but I was unable to get that to work when calling it via URL. At this point I'm more focused on "getting it to work" than I am on "CFC best practices", and getting it to work isn't, well, working. Macromedia's docs are incomplete and nearly devoid of useful examples. I hate to s

RE: Returning XML data via a CFC?

2005-05-24 Thread Kevin Aebig
pace is returned if there is *any* whitespace before the cfcontent tag... Cheers, Kevin -Original Message- From: Pete Ruckelshaus [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 24, 2005 11:30 AM To: CF-Talk Subject: Returning XML data via a CFC? I'm using XMLhttp to do some RIA stuff.

Re: Returning XML data via a CFC?

2005-05-24 Thread Dave Carabetta
On 5/24/05, Pete Ruckelshaus <[EMAIL PROTECTED]> wrote: > Dave, > > That's what I'm doing in a similar CFM page (that I want to convert to > CFC), and it works fine: > > > > select firstname, email > fromtblArsUsers > where userid LIKE '#pa

Re: Returning XML data via a CFC?

2005-05-24 Thread Pete Ruckelshaus
Dave, That's what I'm doing in a similar CFM page (that I want to convert to CFC), and it works fine: select firstname, email fromtblArsUsers where userid LIKE '#param#%' #getEmail.firstname# #getEmail.email#

Re: Returning XML data via a CFC?

2005-05-24 Thread Dave Carabetta
On 5/24/05, Pete Ruckelshaus <[EMAIL PROTECTED]> wrote: > I'm using XMLhttp to do some RIA stuff. Rather than having a separate > CFM file for each XML file that I need to return, I want to have a > single CFC with a bunch of methods in it that return the proper > content (XML, using cfheader/cfco

RE: Returning XML data via a CFC?

2005-05-24 Thread Dave Watts
> > > > Are there any glaring errors in this code that would explain why I'm > not getting anything but whitespace back? You are using CFSETTING to require output be within a CFOUTPUT tag. I'm not sure how that plays with your CFHEADER and CFCONTENT tags. Dave Watts, CTO, Fig Leaf Software htt

Returning XML data via a CFC?

2005-05-24 Thread Pete Ruckelshaus
I'm using XMLhttp to do some RIA stuff. Rather than having a separate CFM file for each XML file that I need to return, I want to have a single CFC with a bunch of methods in it that return the proper content (XML, using cfheader/cfcontent) to the app. The question is, can I do this (and is it go