maximus06
02-10-2008, 07:27 AM
I won't waste your time and get right to it: I'm looking for a global array to store various integers in.
In IE and FF I always used this:
window[test] = 65;
This worked fine in FF and IE, but safari doesn't play ball.
I'm not sure if window[] is a special reserved array in those browsers, since I didn't even initialize it before using it, it just worked 'right out of the box'. Anyways, I tried going:
var window = new Array();
AND
var window = [];
but safari won't budge. Whenever I add values to the array, and try to do something with those values, safari says its not declared/undefined. What am I doing wrong?
In IE and FF I always used this:
window[test] = 65;
This worked fine in FF and IE, but safari doesn't play ball.
I'm not sure if window[] is a special reserved array in those browsers, since I didn't even initialize it before using it, it just worked 'right out of the box'. Anyways, I tried going:
var window = new Array();
AND
var window = [];
but safari won't budge. Whenever I add values to the array, and try to do something with those values, safari says its not declared/undefined. What am I doing wrong?