Hello all,
I’ve searched the forum and google but not found an answer to my problem. The below code executes fine in Internet Explorer but Firefox is unable to find the array that should have been created:
[CODE]
url = “test.php”
var headtag = document.getElementsByTagName(‘head’)[0];
var script= document.createElement(‘script’);
script.type = ‘text/javascript’;
script.src = url;
headtag.appendChild(script);
test.php runs a database query which echos out the following:
[CODE]
calendarArray = new Array();
calendarArray[0] = new Array(“10″,”01022010″,”Test Event”,”allDay”,”none”,”once”,”none”);
calendarArray[1] = new Array(“11″,”04022010″,”Test Event2″,”1300″,”Event Description 2″,”yearly”,”1900″);
When I try to access the array in firefox, I get a calendarArray is not defined error.
Any help would be appreciated.