Hallo,
ich habe da folgendes Problem. Meine Seite beinhaltet 2 iframes. Im linken iframe öffnet sich nach der Auswahl in der Navi ein 3-Fach-Combo. Nachdem man dort eine Auswahl getroffen hat, soll sich die entsprechende Seite im rechten iframe öffnen. Leider weiß ich nicht, wo ich die Ziel-html angeben muß, da ich in Java nicht so fit bin. Hoffe daß mir jemand weiter helfen kann, nachfolgend ein Ausschnitt aus dem Script.
mfg René
<html>
<head>
<title>BC_Phoenix_71</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>JavaScript - Triple Combo</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<style type="text/css">
<!--
body {
background-color: #FF9900;
}
-->
</style>
<link href="typo.css" rel="stylesheet" type="text/css">
</head>
<body>
<FORM name="isc">
<table border="0" cellspacing="0" cellpadding="0">
<td nowrap height="11"><div align="center"><span class="verweise">Saisonüberblick</span> </div> <p>
<select name="example" size="1" onChange="redirect(this.options.selectedIndex)">
<option selected>---Auswahl-------------</option>
<option>1998-1999</option>
</select>
</p>
<p>
<select name="stage2" size="1" onChange="redirect1(this.options.selectedIndex)">
<option value=" " selected> </option>
<option value=" " selected>---Auswahl 2--------------</option>
</select>
</p>
<p> <select name="stage3" size="1" onChange="redirect2(this.options.selectedIndex)">
<option value=" " selected> </option>
<option value=" " selected>---Auswahl 3----------------</option>
</select>
<script language="JavaScript">
<!--
function SymError()
{
return true;
}
window.onerror = SymError;
var SymRealWinOpen = window.open;
function SymWinOpen(url, name, attributes)
{
return (new Object());
}
window.open = SymWinOpen;
//-->
</script>
<script>
<!--
var groups=document.isc.example.options.length
var group=new Array(groups)
for (i=0; i<groups; i++)
group=new Array()
//Die erste Zahl (eckige Klammer) steht für das jeweilige Jahr.
group[0][0]=new Option("------Auswahl 2-----"," ");
group[1][0]=new Option("Nun hier auswaehlen"," ");
group[1][1]=new Option("Mannschaft");
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=new Option(group[x].text,group[x].value)
}
temp.options[0].selected=true
redirect1(0)
}
var secondGroups=document.isc.stage2.options.length
var secondGroup=new Array(groups)
for (i=0; i<groups; i++) {
secondGroup=new Array(group.length)
for (j=0; j<group.length; j++) {
secondGroup[j]=new Array() }}
//Die erste Zahl in der eckigen Klammer steht für die erste Rubrik (Jahr),
//die zweite Zahl steht für die Zweite Rubrik (Spiele)
//und die dritte Zahl für die Berichte
secondGroup[0][0][0]=new Option("------Auswahl 3-----"," ");
secondGroup[1][0][0]=new Option("------Auswahl 3-----"," ");
secondGroup[1][1][0]=new Option("Nun hier auswaehlen"," ");
secondGroup[1][1][1]=new Option("Ausschreibung","berichte.html");
var temp1=document.isc.stage3
function redirect1(y){
for (m=temp1.options.length-1;m>0;m--)
temp1.options[m]=null
for (i=0;i<secondGroup[document.isc.example.options.selectedIndex][y].length;i++){
temp1.options=new Option(secondGroup[document.isc.example.options.selectedIndex][y].text,secondGroup[document.isc.example.options.selectedIndex][y].value)
}
temp1.options[0].selected=true
}
function redirect2(z){
window.location=temp1[z].value
}
//-->
</script>
</p>
</p></td></tr></table>
<script language="JavaScript">
<!--
var SymRealOnLoad;
var SymRealOnUnload;
function SymOnUnload()
{
window.open = SymWinOpen;
if(SymRealOnUnload != null)
SymRealOnUnload();
}
function SymOnLoad()
{
if(SymRealOnLoad != null)
SymRealOnLoad();
window.open = SymRealWinOpen;
SymRealOnUnload = window.onunload;
window.onunload = SymOnUnload;
}
SymRealOnLoad = window.onload;
window.onload = SymOnLoad;
//-->
</script>
</FORM>
</body>
</html>