[jQuery] Re: Json help adding into Object

2009-02-24 Thread Michael
Just giving this a little bump :)

[jQuery] Re: Json help adding into Object

2009-02-24 Thread jQuery Lover
As far as I can see you are overwriting your abbrs object. You must be getting the last value. You may find jQuery.extend utility usefull: http://docs.jquery.com/Utilities/jQuery.extend Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Mon, Feb 23, 2009 at 7:45 PM,

[jQuery] Re: Json help adding into Object

2009-02-24 Thread Mike Alsup
                        $.each(data.abbr_data, function(i,get_abbr_data)                         {                                 var abbr = get_abbr_data.ABBR;                                 var desc = get_abbr_data.DESCRIPTION;                                 var lang =  

[jQuery] Re: Json help adding into Object

2009-02-24 Thread jQuery Lover
I recommend using arrays as well :) Read jQuery HowTo Resource - http://jquery-howto.blogspot.com On Tue, Feb 24, 2009 at 5:58 PM, Mike Alsup mal...@gmail.com wrote: $.each(data.abbr_data, function(i,get_abbr_data) {

[jQuery] Re: Json help adding into Object

2009-02-24 Thread Michael
I would like to use Objects better, because I would like to use the little search code. When I try and run the program the error message I get from FF is 'Error: abbrs[somevar] is undefined'. The full script: $(#load_abbr_data).click(function() { var abbrs = {}

[jQuery] Re: Json help adding into Object

2009-02-24 Thread Mike Alsup
I would like to use Objects better, because I would like to use the little search code. When I try and run the program the error message I get from FF is 'Error: abbrs[somevar] is undefined'. The full script: $(#load_abbr_data).click(function() { var abbrs = {}