Re: CF Query to WDDX to Javascript. Possible?

2010-07-20 Thread James Holmes
WDDX can't be turned into variables with eval() - that's JSON you're thinking of. Why are using WDDX? Can you either use the JSON returntype from a CFC or, if you are on an old version of CF, build a JSON return? -- WSS4CF - WS-Security framework for CF http://wss4cf.riaforge.org/ On 20

Re: CF Query to WDDX to Javascript. Possible?

2010-07-20 Thread John M Bliss
I am using jQuery/ajax to pass a value to search for in the database. This all seems to work fine except what is returned is a WDDX packet Do you have control of code that currently returns WDDX packet? If so, why not edit it to use cfwddx action = wddx2js SEE

Re: CF Query to WDDX to Javascript. Possible?

2010-07-20 Thread Shannon Rhodes
It's been a long time since I've done this so this may not be useful, but isn't the returned packet a Javascript array? At least it was when I used to use cfwddx, so it was just a matter of normal array manipulation. ~|

Re: CF Query to WDDX to Javascript. Possible?

2010-07-20 Thread Will Blake
It's been a long time since I've done this so this may not be useful, but isn't the returned packet a Javascript array? At least it was when I used to use cfwddx, so it was just a matter of normal array manipulation. Thanks for the response! You would think so, but from my experience I

Re: CF Query to WDDX to Javascript. Possible?

2010-07-20 Thread James Holmes
No, WDDX is XML, not Javascript; it always has been. -- WSS4CF - WS-Security framework for CF http://wss4cf.riaforge.org/ On 20 July 2010 21:13, Shannon Rhodes shan...@rhodesedge.com wrote: It's been a long time since I've done this so this may not be useful, but isn't the returned packet a

Re: CF Query to WDDX to Javascript. Possible?

2010-07-20 Thread John M Bliss
Right...and cfwddx action = wddx2js should convert that WDDX to a WddxRecordset javascript object. SEE http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_u-z_2.html#2682044 On Tue, Jul 20, 2010 at 8:40 AM, James Holmes james.hol...@gmail.comwrote: No, WDDX is XML, not

RE: CF Query to WDDX to Javascript. Possible?

2010-07-20 Thread Andy Matthews
To: cf-talk Subject: Re: CF Query to WDDX to Javascript. Possible? It's been a long time since I've done this so this may not be useful, but isn't the returned packet a Javascript array? At least it was when I used to use cfwddx, so it was just a matter of normal array manipulation. Thanks

Re: CF Query to WDDX to Javascript. Possible?

2010-07-20 Thread Cameron Childress
On Tue, Jul 20, 2010 at 9:40 AM, James Holmes james.hol...@gmail.com wrote: No, WDDX is XML, not Javascript; it always has been. The WDDX SDK actually shipped with a fairly robust (for the time) set of JS libraries for manipulating WDDX data via JavaScript. Looks like the official home(s) for

Re: CF Query to WDDX to Javascript. Possible?

2010-07-20 Thread Will Blake
OK, first not sure why there are two threads going about this question... Anyway, to address some of the comments: I currently on CF 6.1 so I (should?) be able to get a JSON response, I will take a look at that route. I do not have a lot of experience doing this type of thing so I am pretty

Re: CF Query to WDDX to Javascript. Possible?

2010-07-20 Thread Shannon Rhodes
Sorry, meant as per John's suggestion cfwddx action = wddx2js, not the packet itself. No, WDDX is XML, not Javascript; it always has been. -- WSS4CF - WS-Security framework for CF http://wss4cf.riaforge.org/ On 20 July 2010 21:13, Shannon Rhodes shan...@rhodesedge.com wrote: It's

Re: CF Query to WDDX to Javascript. Possible?

2010-07-20 Thread Cameron Childress
On Tue, Jul 20, 2010 at 11:07 AM, Will Blake willbl...@printelect.com wrote: OK, first not sure why there are two threads going about this question... Probably something about the HOF email/BB interface splitting it up. I currently on CF 6.1 so I (should?) be able to get a JSON response, I

Re: CF Query to WDDX to Javascript. Possible?

2010-07-20 Thread Will Blake
Cameron, Agreed. We do have CF 9 we just have not installed it yet. I am not 100% sure what is taking so long to get it done, but that is a decision that much higher up in the food chain than I am. I'll check out CFLib.org and see what I can find. Thanks for the info. Will OK,