Re: [jQuery] Returning a query?

2006-10-20 Thread Christopher Jordan
good to note the difference, Mike. For my current purpose, single domain is fine. Thanks for the tip! :) Chris Michael Geary wrote: From Rey Bango: and then use the JSON plugin (http://mg.to/2006/01/25/json-for-jquery) to work with the data. From: Aaron Heimlic

Re: [jQuery] Returning a query?

2006-10-20 Thread Michael Geary
> From Rey Bango: > > and then use the JSON plugin > (http://mg.to/2006/01/25/json-for-jquery) to work with the data. > From: Aaron Heimlich > > Or you could (as of 1.0.2, possibly a bit earlier) do > > $.getJSON("file.php",function(r) { > alert(r); > }); > > See the API docs

Re: [jQuery] Returning a query?

2006-10-20 Thread Christopher Jordan
Sweet! I'd found that site, but hadn't made it down to the bottom of the page first. This looks like it won't be very hard. I appreciate all the help guys! Chris Aaron Heimlich wrote: You should head over to http://www.json.org. Towards the bottom of the page, there are links to JSON encoders

Re: [jQuery] Returning a query?

2006-10-20 Thread Rey Bango
Chris, You're going to need to send the query back as a JSON packet. Use the link that I sent for CFJson to convert your query to JSON. Rey... cjordan 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 sear

Re: [jQuery] Returning a query?

2006-10-20 Thread Aaron Heimlich
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! :-DTh

Re: [jQuery] Returning a query?

2006-10-20 Thread cjordan
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 w

Re: [jQuery] Returning a query?

2006-10-20 Thread Aaron Heimlich
On 10/20/06, Rey Bango <[EMAIL PROTECTED]> wrote: Thanks Aaron!Rey...Your welcome, dude. Happy to help! ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Returning a query?

2006-10-20 Thread Rey Bango
Even better. :o) Rey... 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: > >

Re: [jQuery] Returning a query?

2006-10-20 Thread Aaron Heimlich
On 10/20/06, Matt Stith <[EMAIL PROTECTED]> wrote: Acctually, jQuery 1.0 and up can handle JSON for you. Try this out:Ah. I knew $.getJSON was available before 1.0.2, just couldn't remember when. ___ jQuery mailing list discuss@jquery.com http://jquery.co

Re: [jQuery] Returning a query?

2006-10-20 Thread Rey Bango
Thanks Aaron! Rey... Aaron Heimlich wrote: > On 10/20/06, *Rey Bango* <[EMAIL PROTECTED] > > wrote: > > and then use the JSON plugin > (http://mg.to/2006/01/25/json-for-jquery) to work with the data. > > > > Or you could (as of 1.0.2, possibly a bit earlier)

Re: [jQuery] Returning a query?

2006-10-20 Thread Rey Bango
Hi Matt, Its the term used to identify a result set in ColdFusion. Its what a SQL query returns when ColdFusion executes a standard SQL query. Rey... Matt Stith wrote: > I still really dont understand what you mean by a query. > > On 10/20/06, *cjordan* <[EMAIL PROTECTED]

Re: [jQuery] Returning a query?

2006-10-20 Thread Aaron Heimlich
On 10/20/06, Rey Bango <[EMAIL PROTECTED]> wrote: and then use the JSON plugin(http://mg.to/2006/01/25/json-for-jquery) to work with the data.Or you could (as of 1.0.2, possibly a bit earlier) do $.getJSON("file.php",function(r) { alert(r);});See the API docs under "G" for more info ___

Re: [jQuery] Returning a query?

2006-10-20 Thread Matt Stith
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 inAjaxCFC since AjaxCFC is a

Re: [jQuery] Returning a query?

2006-10-20 Thread Matt Stith
Ohh i think i know what you mean, like a JSON object? For example, the server could respond:{"column1":"Some data","column2":"Some more data","column3":"Foobar" }, Which you could then do this:$.get("file.php",function(r) { data = ""> alert(data.column1);});Is that what you mean? On 10/20/06, cjord

Re: [jQuery] Returning a query?

2006-10-20 Thread Rey Bango
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:

Re: [jQuery] Returning a query?

2006-10-20 Thread Matt Stith
I still really dont understand what you mean by a query.On 10/20/06, cjordan <[EMAIL PROTECTED]> wrote: I re-read this and thought I should maybe clarify my question. I need toreturn a query result set to the client side using Ajax. How does jQuery go about handling that? What's the simplest way of

Re: [jQuery] Returning a query?

2006-10-20 Thread cjordan
Thanks for responding Matt. That's not quite what I'm looking for (I don't think)... when I was using ajaxCFC I could return a query object (a result set) and in return it gave me a javascript object that represented the query as an array of structures: query[i].column1 where query is the nam

Re: [jQuery] Returning a query?

2006-10-20 Thread cjordan
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 f

Re: [jQuery] Returning a query?

2006-10-20 Thread Matt Stith
I think this is what your saying:$.get("file.php",function(r) { alert(r);});That will get the contents of "file.php", and show them in an alert window. On 10/20/06, Christopher Jordan <[EMAIL PROTECTED]> wrote: Hi folks, I need to know if jQuery can return a query result set from an Ajax c

[jQuery] Returning a query?

2006-10-20 Thread Christopher Jordan
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/