P
Phil
Supposedly, the code below should assign the correct value to the
'url' variable.
But all I get is a blank 'main' Frame with apparently nowhere to go
when I
click
on the link in the 'menu' Frame..
Worst(yesyes!!)
1 - Explorer 6 : clicking a link in the 'menu' frame simple reopens an
instance of the FRAMESET, syntax error msg.
2 - Netscape 7.1 : clicking a link in the 'menu' frame simple reopens
an instance of the FRAMESET, but does not report ANY errors in the
Java console.
3 - Mozilla 5.0: same as Netscape.
Opera 7.23 however WILL (after a little) opens as expected, but
right-clicking a link(open in a new window) does not retrieve the page
name of the clicked link, instead it re-opens the menu page alone in a
new window.
What a headache. Can someone help me please?TIA
<HTML>
<SCRIPT type="text/javascript">
var theData;
var begin;
var url;
begin = top.location.href.indexOf("?");
if (begin > 0 ) {
theData = top.location.href.substring(begin+1,location.href.length);
theData = unescape(theData);
url = "<FRAME name=main src='files/" + theData; + "'>";
} else {
url = "<FRAME name=main src='files/Help.htm'>";
}
</script>
<FRAMESET cols="20%,*" FRAMEBORDER="1" BORDER="1" scrolling="auto">
<noframes>
</noframes>
<FRAME name=menu src='files/menu.html' marginwidth='0'
marginheight='0' target='main'>
<script type="text/javascript">
document.write(url);
<script>
</FRAMESET>
</HTML>
BTW, the code I use at the moment is very inelegant, you can view it
there:
http://philippeoget.50megs.com/
'url' variable.
But all I get is a blank 'main' Frame with apparently nowhere to go
when I
click
on the link in the 'menu' Frame..
Worst(yesyes!!)
1 - Explorer 6 : clicking a link in the 'menu' frame simple reopens an
instance of the FRAMESET, syntax error msg.
2 - Netscape 7.1 : clicking a link in the 'menu' frame simple reopens
an instance of the FRAMESET, but does not report ANY errors in the
Java console.
3 - Mozilla 5.0: same as Netscape.
Opera 7.23 however WILL (after a little) opens as expected, but
right-clicking a link(open in a new window) does not retrieve the page
name of the clicked link, instead it re-opens the menu page alone in a
new window.
What a headache. Can someone help me please?TIA
<HTML>
<SCRIPT type="text/javascript">
var theData;
var begin;
var url;
begin = top.location.href.indexOf("?");
if (begin > 0 ) {
theData = top.location.href.substring(begin+1,location.href.length);
theData = unescape(theData);
url = "<FRAME name=main src='files/" + theData; + "'>";
} else {
url = "<FRAME name=main src='files/Help.htm'>";
}
</script>
<FRAMESET cols="20%,*" FRAMEBORDER="1" BORDER="1" scrolling="auto">
<noframes>
</noframes>
<FRAME name=menu src='files/menu.html' marginwidth='0'
marginheight='0' target='main'>
<script type="text/javascript">
document.write(url);
<script>
</FRAMESET>
</HTML>
BTW, the code I use at the moment is very inelegant, you can view it
there:
http://philippeoget.50megs.com/