Rick, >"If this is an AJAX call, we must return JSON data" > >As I'm using CF 4.5, I am really not sure if I have the option of >return JSON data to an AJAX call. Can you clarify for me whether >or not JSON data can be generated using CF 4.5? > >The point of utilizing JSON data comes up over and over again >as I try to realize a solution for using CF server-side validation >and AJAX.
JSON is just text--specifically text formatted as a valid JavaScript variable. Where I think you're getting confused is most of the CF-related JSON tools out there are geared towards CFMX. However, all these tools do is help you generate the JSON string by converting a native CF variable to the JSON format. As you can clearly see in my example, I'm generating this "JSON" data by hand. As a matter of fact, my example should probably even run in CF4.5. The only thing I can see that might cause a problem is the reset="" attribute in the <cfcontent /> tag. I can't recall if that was available in CF4.5. -Dan ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & Flex 2 Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:273630 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

