> 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 = {}
>
> $.getJ
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 = {}
$.getJSON("jsondata.php"
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 wrote:
>> $.each(data.abbr_data, function(i,get_abbr_data)
>> {
>>
> $.each(data.abbr_data, function(i,get_abbr_data)
> {
> var abbr = get_abbr_data.ABBR;
> var desc = get_abbr_data.DESCRIPTION;
> var lang = get_abbr_data
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, Michae
Just giving this a little bump :)
6 matches
Mail list logo