|
-
Mar 10th, 2006, 10:24 PM
#1
Thread Starter
Fanatic Member
Javascript not working in Mac IE 5
We have a page that works great in the newer browsers on pc (IE, Firefox) but on Mac IE 5 the dropdown menus are not populated after you make your first selection.
Does anyone have any ideas if there is a fix or if the IE5 mac version just doesn't support javascript?
URL is: Mac IE 5 link
Javascript file in .js file:
Code:
//in order for this .js file to opperate properly it must be called after the combobox element in the form
//since if called before combo will have no items.
//get the number of items in the dropdown usport and store in groups variable
var groups=document.forms['application'].usport.options.length;
//take new variable and make a new array with that number of elements
var group=new Array(groups);
//loop the number of countries in combo and create arrays withing arrays
for (i=0; i<groups; i++){
group[i]=new Array();
}
//again creat array within array for weekgroup
var weekgroup=new Array(groups);
for (i=0; i<groups; i++){
weekgroup[i]=new Array();
}
//This section populates the 2 main arrays with sub arrays
//program
//Dates
group[0][0]=new Option("","");
group[0][1]=new Option("Date not listed","1/1/1970");
//Weeks
weekgroup[0][0]=new Option("","");
weekgroup[0][1]=new Option("Date not listed","");
//Football
//Team list
group[1][0]=new Option("","");
group[1][1]=new Option("Bengals","Bengals");
group[1][2]=new Option("Bills","Bills");
group[1][3]=new Option("Broncos","Broncos");
group[1][4]=new Option("Packers","Packers");
group[1][5]=new Option("Vikings","Vikings");
//Other
weekgroup[1][0]=new Option("","")
weekgroup[1][1]=new Option("Offense","O");
weekgroup[1][2]=new Option("Defense","D");
//Basketball
//Team List
group[2][0]=new Option("","");
group[2][1]=new Option("Boston Celtics","Celtics");
group[2][2]=new Option("Chicago Bulls","Bulls");
group[2][3]=new Option("Orlando Heat","Heat");
group[2][4]=new Option("Los Angeles Lakers","Lakers");
//Duration
weekgroup[2][0]=new Option("","");
weekgroup[2][1]=new Option("Offense","O");
weekgroup[2][2]=new Option("Defense","D");
//Cycling
//Team List
group[3][0]=new Option("","");
group[3][1]=new Option("Discovery Channel","Discovery");
group[3][2]=new Option("CSC","CSC");
group[3][3]=new Option("Lotto","Lotto");
//Duration
weekgroup[3][0]=new Option("","");
weekgroup[3][1]=new Option("Climbing","Climbing");
weekgroup[3][2]=new Option("Time Trialing","TT");
function redirect(x){
var temp=document.application.uteam;
for (m=temp.options.length-1;m>0;m--){
temp.options[m]=null;
for (i=0;i<group[x].length;i++){
temp.options[i]=new Option(group[x][i].text,group[x][i].value);
}
}
temp.options[0].selected=true;
var temp=document.application.uother;
for (m=temp.options.length-1;m>0;m--){
temp.options[m]=null;
for (i=0;i<weekgroup[x].length;i++){
temp.options[i]=new Option(weekgroup[x][i].text,weekgroup[x][i].value);
}
temp.options[0].selected=true;
}
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|