Re: IE and arrays of objects

by "Ryan Fischer" <ryan(at)gigabee.com>

 Date:  Sat, 13 Apr 2002 20:37:53 -0400
 To:  "C-Intra Botanicals" <bigbear(at)dowco.com>,
<hwg-techniques(at)mail.hwg.org>
 References:  nucleus dowco
  todo: View Thread, Original
> Hi all
>
> Hopefully a quickie.  I'm working on a routine that is supposed to
query
> an array of javascript objects.  The problem is that I can't seem to
get
> the instantiations to initiate.
>
> I have the following:
> var l = new Array();
> var c = new Array();
>
> function catL(sc, co, de){
> /* a constructor for objects in the "database" */
>
>  this.sciName=sc;
>  this.comName=co;
>  this.description=de;
>  this.shot = lis();
>  this.shum = listS();
> };
> When I write:
> l[1] = new catL("a", "b", "c");
>
> Internet explorer hates me for it and returns an error or a string of
> undefined strings.  Any ideas will be appreciated.
>
> The idea is to set up a "table" on the client side because the amount
of
> info is small and query this table via javascript.

Works fine for me in IE6.  Just make sure lis() and listS() are defined.

--
 -Ryan

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA