PDA

View Full Version : jkd... help?


Newfdog
07-11-2002, 09:49 PM
OK I'm an idiot... I posted the wrong script. This is the one I need the second combo to open in different frame. I'm guessing I need to change the function redirect, but not sure how. Sorry and thanks for your help.

Newfdog

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Business Document Menu</title>
</head>

<body>
<FORM name="isc">
<div align="center">
<center>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr align="center">
<td nowrap height="11" width="781">
<p align="center">

<select name="example" size="1" onChange="redirect(this.options.selectedIndex)">
<option selected>Select Department........</option>
<option>Manufacturing Technologies</option>
<option>Operations</option>
<option>Materials</option>
<option>Quality</option>
<option>Customer Acceptance</option>
<option>Install</option>
</select>

<select name="stage2" size="1" onChange="redirect1(this.options.selectedIndex)">
<option value=" " selected></option>
<option value=" " selected>-----------------</option>
<option value=" " selected>-----------------</option>

</select>

<script>
<!--


var groups=document.isc.example.options.length
var group=new Array(groups)
for (i=0; i<groups; i++)
group[i]=new Array()

group[0][0]=new Option("-----------------"," ");

group[1][0]=new Option("Now Select Group"," ");
group[1][1]=new Option("Engineering Services","engineering_services.htm");
group[1][2]=new Option("Design Engineering","46");
group[1][3]=new Option("Customer/Supplier Engineering","45");
group[1][4]=new Option("Seal Team","45")

group[2][0]=new Option("Now Select Group"," ");
group[2][1]=new Option("IS/Optics Assembly","115");
group[2][2]=new Option("IS Boards","116");
group[2][3]=new Option("Optics Alignment","116");
group[2][4]=new Option("Final Integration","116");

group[3][0]=new Option("Now Select Group"," ");
group[3][1]=new Option("ISRIP & Boards","115");
group[3][2]=new Option("Master Schedule & FI/Optics","116");
group[3][3]=new Option("Production & NPI","116");

group[4][0]=new Option("Now Select Group"," ");
group[4][1]=new Option("Quality","115");

group[5][0]=new Option("Now Select Group"," ");
group[5][1]=new Option("Acceptance","115");

group[6][0]=new Option("Now Select Group"," ");
group[6][1]=new Option("Install","115");

var temp=document.isc.stage2


function redirect(x){
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)
}
}


//-->
</script>

</p>

</td>
</tr>
</table>
</center>
</div>
</FORM>

WA
07-11-2002, 11:08 PM
Newfdog:
Two things:

1) Please do NOT open a new thread just to post a followup to the original question. You've already opened 3 threads on the same subject, the other one identical to this one. To post a followup, add to this duplicate thread: http://www.codingforums.com/showthread.php?s=&threadid=1815

2) Please try and not address threads to individuals, in this case, jkd. Everyone's here to help as time permits.

Closing this thread.

People, to help out Newfdog, please view the duplicate thread here: http://www.codingforums.com/showthread.php?s=&threadid=1815