Folks
I have a multi-dimensional array in javascript, as follows:
gameRecord=new Array(500);
gameRecord[1][1]="FA Cup : 19 February 2005";
gameRecord[1][2][1]="Arsenal v Sheff Utd, 12:30";
gameRecord[1][2][2]="Bolton v Fulham, 15:00";
gameRecord[1][2][3]="Charlton v Leicester, 15:00";
gameRecord[1][2][4]="Everton v Man Utd, 17:30";
gameRecord[1][2][5]="Southampto n v Brentford, 15:00";
There are alot more records to it, but the above is just an extract...
It is written into its own javascript file (called football.js) which I
call using
<script language="JavaS cript" type="text/javascript"
src="football.j s"></script>
I know its reading it because for a test, I preceeded the file with a
simple alert("here"); and this shouted back at me.
How come though that even before I read from the array I get the
following error message in the JavaScript Console in Mozilla...
Error: gameRecord[1] has no properties
I gather I am initializing the array incorrectly - would someone care to
direct me in the right direction?
Thanks
Randell D.
Comment