You should head over to http://www.json.org. Towards the bottom of the page, there are links to JSON encoders written in many different languages (I'm guessing you would want one of the ColdFusion ones).

On 10/20/06, cjordan <[EMAIL PROTECTED]> wrote:

Wow! Replys galore! I feel so loved, now! :-D

Thanks for the tips guys. JSON sounds like what I want then. I'll give that
a search on the net, do some reading, and holler back if I've got any
questions, but it seems like the example below is pretty easy to follow. I'm
just needing to understand what I have to do special on the server side (if
anything).

And if nothing special is required on the server side, could someone just
reply and let me know, so I don't waste a bunch of time? :-)

Thanks heaps!
Chris


Matt Stith wrote:
>
> Acctually, jQuery 1.0 and up can handle JSON for you. Try this out:
>
> $.getJSON("file.php",function(r) {
>  alert(r.column1 );
> });
>
> No need for a plugin. ;)
> On 10/20/06, Rey Bango <[EMAIL PROTECTED]> wrote:
>>
>> Hi Chris,
>>
>> You're not going to be able to manipulate a query like you would in
>> AjaxCFC since AjaxCFC is a CF wrapper for DWR and hence, gives you
>> access to CF functionality.
>>
>> Return your query as a JSON packet using CFJSon
>> ( http://jehiah.com/projects/cfjson/) and then use the JSON plugin
>> (http://mg.to/2006/01/25/json-for-jquery) to work with the data.
>>
>> Rey...
>>
>> cjordan wrote:
>> > I re-read this and thought I should maybe clarify my question. I need
>> to
>> > return a query result set to the client side using Ajax. How does
>> jQuery
>> go
>> > about handling that? What's the simplest way of accomplishing this
>> task.
>> >
>> > I know that with ajaxCFC I could return a query object from my
>> ColdFusion
>> > function and it gave me a _javascript_ structure (or object... whatever)
>> that
>> > I could address really easily. How easy is this sort of thing in
>> jQuery.
>> >
>> > Also, I gotta say for such an active list, I've posted three or four
>> times,
>> > and only one bloke's even responded and that's because he and I knew
>> > eachother from a different list and were emailing off list.
>> >
>> > Can *anybody* help with this question?
>> >
>> > Thanks,
>> > Chris
>> >
>> > cjordan wrote:
>> >
>> >>Hi folks,
>> >>
>> >>I need to know if jQuery can return a query result set from an Ajax
>> >>call. What's the best way to do this?
>> >>
>> >>Chris
>> >>
>> >>_______________________________________________
>> >>jQuery mailing list
>> >>discuss@jquery.com
>> >> http://jquery.com/discuss/
>> >>
>> >>
>> >
>> >
>>
>> _______________________________________________
>> jQuery mailing list
>> discuss@jquery.com
>> http://jquery.com/discuss/
>>
>
> _______________________________________________
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>
>

--
View this message in context: http://www.nabble.com/Returning-a-query--tf2483121.html#a6925517
Sent from the JQuery mailing list archive at Nabble.com.


_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to