T
tinyhunter
Maybe I am just blind. The following http://cresslawnprimary.co.za/news.html
works in IE and Opera fine. I can change via the pull down the news
and it works. But in FireFox it just does not work and the error I see
in Firebug is:
parent.frames.XYZ1 has no properties
http://cresslawnprimary.co.za/drop.html?
Line 7
the code looks as follows:
function gotourl( mySelect ) {
myIndex = mySelect.selectedIndex;
myValue = mySelect.options[myIndex].value;
parent.frames.XYZ1.location=myValue;
}
function gotour2(Ref1) {
myElem=document.getElementById("SelBox1");
myElem.selectedIndex = Ref1 ;
myValue = myElem.options[Ref1].value;
parent.frames.XYZ1.location=myValue;
}
</script>
<title></title>
</head>
<body>
Select newsletter to view: Latest:
<a href="javascript:gotour2(0)">17 May 2007</a>
<a href="javascript:gotour2(1)">03 May 2007</a>
<a href="javascript:gotour2(2)">18 Apr 2007</a>
All: <select id="SelBox1"
onchange="gotourl(this)">
<option value="NewsLetters/17 May 2007.html" selected>
17 May 2007
</option>
<option value="NewsLetters/03 May 2007.html">
03 May 2007
</option>
<option value="NewsLetters/18 Apr 2007.html">
18 Apr 2007
</option>
<option value="NewsLetters/15 Mar 2007.html">
15 Mar 2007
</option>
<option value="NewsLetters/01 Mar 2007.html">
01 Mar 2007
</option>
<option value="NewsLetters/16 Feb 2007.html">
16 Feb 2007
</option>
<option value="NewsLetters/01 Feb 2007.html">
01 Feb 2007
</option>
<option value="NewsLetters/18 Jan 2007.html">
18 Jan 2007
</option>
</select>
</body>
</html>
Any ideas, where I am blond in regards to the script
Thx,
Marcus
works in IE and Opera fine. I can change via the pull down the news
and it works. But in FireFox it just does not work and the error I see
in Firebug is:
parent.frames.XYZ1 has no properties
http://cresslawnprimary.co.za/drop.html?
Line 7
the code looks as follows:
function gotourl( mySelect ) {
myIndex = mySelect.selectedIndex;
myValue = mySelect.options[myIndex].value;
parent.frames.XYZ1.location=myValue;
}
function gotour2(Ref1) {
myElem=document.getElementById("SelBox1");
myElem.selectedIndex = Ref1 ;
myValue = myElem.options[Ref1].value;
parent.frames.XYZ1.location=myValue;
}
</script>
<title></title>
</head>
<body>
Select newsletter to view: Latest:
<a href="javascript:gotour2(0)">17 May 2007</a>
<a href="javascript:gotour2(1)">03 May 2007</a>
<a href="javascript:gotour2(2)">18 Apr 2007</a>
All: <select id="SelBox1"
onchange="gotourl(this)">
<option value="NewsLetters/17 May 2007.html" selected>
17 May 2007
</option>
<option value="NewsLetters/03 May 2007.html">
03 May 2007
</option>
<option value="NewsLetters/18 Apr 2007.html">
18 Apr 2007
</option>
<option value="NewsLetters/15 Mar 2007.html">
15 Mar 2007
</option>
<option value="NewsLetters/01 Mar 2007.html">
01 Mar 2007
</option>
<option value="NewsLetters/16 Feb 2007.html">
16 Feb 2007
</option>
<option value="NewsLetters/01 Feb 2007.html">
01 Feb 2007
</option>
<option value="NewsLetters/18 Jan 2007.html">
18 Jan 2007
</option>
</select>
</body>
</html>
Any ideas, where I am blond in regards to the script
Thx,
Marcus