I would say then that it's probably your server code.  Maybe run some
debugging and make sure the parameters are coming in as you expect, and look
at the data server side before it goes back to the client.

-- JOsh



-----Original Message-----
From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
Behalf Of bradrice
Sent: Thursday, May 14, 2009 10:02 AM
To: jQuery (English)
Subject: [jQuery] Re: jquery.getJSON params not filtering


OK, I changed it but it still returns everything. It isn't filtering.
Thanks for the suggestion.

On May 14, 12:54 pm, "Josh Nathanson" <joshnathan...@gmail.com> wrote:
> I think your params should look like this:
>
> { "category":fundType }
>
> In your code, you are passing a string rather than a javascript object
> literal.
>
> -- Josh
>
> -----Original Message-----
> From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
>
> Behalf Of bradrice
> Sent: Thursday, May 14, 2009 9:38 AM
> To: jQuery (English)
> Subject: [jQuery] jquery.getJSON params not filtering
>
> I just can't seem to get getJSON to filter based upon the map I send
> in.
>
> Here is my code:
>
> $.getJSON('funds_static_json.dot',"{category:fundType}",function(json)
> {
>                         dropdownSet.loadSelect(json);
>                 }
>
> My post in firebug looks completely right:
>
> http://www.uakron.edu/development2/funds/funds_static_json.dot?catego...
> 60
>
> The json is formatted properly and passes the lint test.
>
> However, I get the entire json back and not the filtered by my
> parameter. I have over a thousand funds, but it should only pull back
> about 9 bassed upon that category.
>
> Here is my working
url:http://www.uakron.edu/development2/funds/fund-detail_2.dot
>
> Any help would be appreciated. I'm slamming into a wall.

Reply via email to