RE: [ACFUG Discuss] Feeling a little SPRY
Note, as well, that I pointed out in the entry some tools that are SO valuable when doing spry coding. Since you can't see what the spry requestor (xmlhttprequest) is getting back, you can't see if there's an error in your code, for instance. Or any of the things I talked about. It's really critical for folks to use some sort of tool to show you the back and forth between the browser and the server, since you cannot always rely on dropping the request in the browser yourself to check it. HTH. /charlie http://www.carehart.org/blog/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Thursday, August 24, 2006 2:57 PM To: discussion@acfug.org Subject: RE: [ACFUG Discuss] Feeling a little SPRY the function was to teddy i think. I got yours. and yes its returning the in the in-correct mime-type working to resolve that now. - 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 -
RE: [ACFUG Discuss] Feeling a little SPRY
the function was to teddy i think. I got yours. and yes its returning the in the in-correct mime-type working to resolve that now. - 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] Feeling a little SPRY
Here is a blog post that kind of shows the XMl transformation aspect from a method in a component:http://www.quackit.com/coldfusion/coldfusion_web_services.cfm TeddyOn 8/24/06, [EMAIL PROTECTED] <[EMAIL PROTECTED] > wrote: SELECT *stuff*FROM *somewhere*LEFT JOIN *something* on *something* LEFT JOIN *something* on *something*LEFT JOIN *something* on *something* bReturn = querytoxml(DBpull); theres the function - 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--- Blog: http://cfpayne.wordpress.com/Atlanta CFUG: 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 -
RE: [ACFUG Discuss] Feeling a little SPRY
John, who's note are you replying to? Did you read the entries I pointed to about solving common problems in returning data from CFML to Spry? If you're saying you can call this from the browser, then the problem does seem it would be one of the issues I'd raised. Just can't tell since you're not indicating whose not you're replying to. /charlie http://www.carehart.org/blog/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Thursday, August 24, 2006 2:14 PM To: discussion@acfug.org Subject: Re: [ACFUG Discuss] Feeling a little SPRY SELECT *stuff* FROM *somewhere* LEFT JOIN *something* on *something* LEFT JOIN *something* on *something* LEFT JOIN *something* on *something* bReturn = querytoxml(DBpull); theres the function - 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 -
RE: [ACFUG Discuss] Feeling a little SPRY
Why are you saying you have to write it out to an XML file? Are you saying that calling the CFC fails from Spry? But you can browser it and it works, so you save that file as XML and then call that from spry? If so, then I wonder if the problem is simply that what you're sending to the browser (that works) has stuff in it that spry itself would not like (must be pure XML). A common mistake is to leave debugging turned on. You don't "notice it" in the browser (your eyes have learned to accept it), but the spry xmlhttprequest (or any ajax request) will balk if it's not just XML. There can also be problems due to the content type being still set as HTML (as CFML pages are by default) or whitespace issues. I've discussed these very challenges and their solution in a blog entry a few weeks ago: I-Spry Part 4: Help. Spry/Ajax isn't working: problems due to unexpected server results http://carehart.org/blog/client/index.cfm/2006/7/13/spry4_unexpected_server_ results Here's one that's got some other easy spry mistakes: I-Spry Part 3: Some easy mistakes (I hope you will now avoid) http://carehart.org/blog/client/index.cfm/2006/7/11/spry_gotchas Finally, as for your wanting to submit data via Spry, check out Ray's entry: Sending Data with Spry http://ray.camdenfamily.com/index.cfm/2006/7/12/Sending-Data-with-Spry Let us know if any of those help you. /charlie http://www.carehart.org/blog/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Thursday, August 24, 2006 1:19 PM To: discussion@acfug.org Subject: Re: [ACFUG Discuss] Feeling a little SPRY essentially: setup: cfmx7 everything is local. Calling page is Here: test //var cartData = new Spry.Data.XMLDataSet("com/cart.cfc?method=getcarts", "/query/row"); //have have the cfc write out an xml file cause it wont read the above line var cartData = new Spry.Data.XMLDataSet("myxml.xml", "/query/row"); Chart Cart v0.1Alpha Cart Number Current User Users Department Authorized by Cart Status Cart Repair Ticket {cartid} {username} {department} {authusername} {cartstatusdescr} {cartstatusdescr} Last Date Checked Out:{checkout} Last Date Check In:{checkin} Notes: {notes} Check In Cart {cartid} Check Out Cart {cartid} Remove Cart {cartid} Add new Cart blargh And the xml the cfc returns is here (though i have to have it write out to myxml.xml for spry page to work): MARK FENNELL 10 Checked In August 22, 2006 August 22, 2006 Data Processing (936) I have sung the songs of the exalted salted almonds 1 0 JOHN LYONS JOHN LYONS 11 Checked In August 22, 2006 August 22, 2006 Data Processing (936) Can't Sleep Clowns will eat me 1 0 JOHN LYONS JOHN LYONS 12 Checked In August 22, 2006 August 22, 2006 Data Processing (936) The cat ate his hat while dancing on a boy named matt 1 0 JOHN LYONS 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 -
Re: [ACFUG Discuss] Feeling a little SPRY
SELECT *stuff* FROM *somewhere* LEFT JOIN *something* on *something* LEFT JOIN *something* on *something* LEFT JOIN *something* on *something* bReturn = querytoxml(DBpull); theres the function - 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] Feeling a little SPRY
John,This sounds like the functionality of consuming a remote CFC, which auto-generates a WSDL translation of the component. It is a matter of calling the CFC method with an access="remote". You can use cfsavecontent to create an xml with coldfusion and return a customized XML file as the web service return value. This shoudl enable SPRY to read a formatted XML document returned from your CFC. TeddyOn 8/24/06, [EMAIL PROTECTED] <[EMAIL PROTECTED] > wrote:essentially:setup:cfmx7everything is local.Calling page is Here: test src="">