Andrew, My only experience with "Ajax" is with CFAjax, and I learned through copy/paste and pain and it has been some months since I was full-time programming on my application. That said, I do remember a few days of frustration over processing arrays inside JavaScript.
Not being initmate with JavaScript, my framework was based on creating actual HTML in the CFC and passing into the javascript as a string. It was all a bit complex, as I ended up passing Ajax into Ajax for situation where I would pass in a table using Ajax and then pass in an AJax-based multiple drop-down select list inside of that. Cfajax may have changed, but it was limited in that it could only handle simple arrays. I got around this by creating certain values in the array that would trigger a new variable in javascript. For example, the code below slices off the first value and uses it as the name for the second select list: // populate the second drop down function getSelectResult(SelectListReturnArray) { var secondSelect = SelectListReturnArray[0]["VALUE"]; var newArray = SelectListReturnArray.slice(1); DWRUtil.removeAllOptions(secondSelect); DWRUtil.addOptions(secondSelect, newArray, "KEY", "VALUE"); } Hope that helps. Chad On 6/15/06, Andrew Scott <[EMAIL PROTECTED]> wrote: > > > > > Andrew, > > > > That was of no real use to me the example they give doesn't even work. I > have no problem return anything else from coldfusion via ajax or cfajax or > even ajaxCFC, but when it comes to an Array it does nothing. I am pulling my > hair out here because all documentation that I have seen should work. > > > > > Senior Coldfusion Developer > > Aegeon Pty. Ltd. > > www.aegeon.com.au > > Phone: +613 8676 4223 > > Mobile: 0404 998 273 > > > > ________________________________ > > > From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf > Of Andrew Mercer > Sent: Thursday, 15 June 2006 1:10 PM > To: cfaussie@googlegroups.com > Subject: [cfaussie] Re: CFJSON was:microshaft web framework > > > > Check out > http://jehiah.com/projects/cfjson/ > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~----------~----~----~----~------~----~------~--~---