[thelist] Re: thelist Digest, Vol 10, Issue 31
Diane Soini
dianesoini at earthlink.net
Wed Dec 17 09:06:39 CST 2003
Walter, I think the problem is that you are putting quotes around 'do'
and 'in'. Those are variable names and shouldn't be quoted. When you go
to use them, you would use them like this:
myobj.do
myobj.in
I think using reserved words will be a gotcha, too, so maybe try
something like this:
_do: "Dominican Republic",
_in: "India",
Diane
On Wednesday, December 17, 2003, at 12:21 AM,
thelist-request at lists.evolt.org wrote:
> OK, one last gasp here...
>
> Js does not like these...
>
> 'do': "Dominican Republic",
> 'in': "India",
>
> I get 'expected identifier' error
>
> alert ( ccTLD.in );
>
> yes, this works....
>
> alert ( ccTLD['in'] );
>
> Am I missing something obvious (again)?
>
> Walter
More information about the thelist
mailing list