Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] associative arrays question
- From: javascript@xxxxxxxxxx (Christopher Basken)
- Subject: [Javascript] associative arrays question
- Date: Sat, 27 Apr 2002 10:44:05 -0400
At 05:21 PM 4/26/2002 -0600, you wrote:
>Use the for ... in construction, like this:
>
>for (var strCurrentKey in theirScore) {
> alert(theirScore[strCurrentKey]);
>}
>
>Also works for looping through object properties :) HTH.
>
>Amanda Birmingham
>Web Application Developer
Thanks! That did the trick.
- References:
- [Javascript] associative arrays question
- From: Christopher Basken
- [Javascript] associative arrays question
- From: Amanda Birmingham
- [Javascript] associative arrays question
- Prev by Date: [Javascript] associative arrays question
- Next by Date: [Javascript] Please help: problem with Javascript 'this' keyword in nested objects!
- Previous by thread: [Javascript] associative arrays question
- Next by thread: [Javascript] Great scroller script... doesn't work in frames??
- Index(es):