J
Johan
Hi,
I've been working on the following piece of code and it works fine in IE
and Opera, dut keep getting the same error in Firefox. Can anyone tell
me what's wrong with this code? What I'm trying to do is rewrite the
left (navigationframe) and load a page on the right (mainframe).
tia,
Johan
Here's a piece of the code:
function setHome(pageCode) {
with (document) {
open();
write('<?xml version="1.0" encoding="iso-8859-1"?>\n<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n');
write('\n<html xmlns="http://www.w3.org/1999/xhtml">\n\n');
write('<head>\n<link rel="stylesheet" type="text/css"
href="./nav.css" />\n<script src="./nav.js" type="text/javascript"
language="JavaScript">\n</script>\n</head>\n\n');
write('<body>\n');
write('<div id="navigation">\n');
write('<table>\n');
write('<tr>\n<td><a href="#" onclick="setHome(\'./homemain.html\')"
class="current">Home</a></td>\n</tr>');
write('<tr>\n<td><a href="#"
onclick="setSoftware(\'./software.html\')">Software</a></td>\n</tr>');
write('<tr>\n<td><a href="#"
onclick="setLinks(\'linksmain.html\')">Links</a></td>\n</tr>');
write('<tr>\n<td><a href="#"
onclick="setInfo(\'./informatie.html\')">Informatie</a></td>\n</tr>');
write('</table>');
write('</div>');
write('</body>');
write('</html>');
close();
setPage(pageCode);
}
}
....
function setPage(url) {
parent.mainframe.location.href = url.toString();
}
I've been working on the following piece of code and it works fine in IE
and Opera, dut keep getting the same error in Firefox. Can anyone tell
me what's wrong with this code? What I'm trying to do is rewrite the
left (navigationframe) and load a page on the right (mainframe).
tia,
Johan
Here's a piece of the code:
function setHome(pageCode) {
with (document) {
open();
write('<?xml version="1.0" encoding="iso-8859-1"?>\n<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n');
write('\n<html xmlns="http://www.w3.org/1999/xhtml">\n\n');
write('<head>\n<link rel="stylesheet" type="text/css"
href="./nav.css" />\n<script src="./nav.js" type="text/javascript"
language="JavaScript">\n</script>\n</head>\n\n');
write('<body>\n');
write('<div id="navigation">\n');
write('<table>\n');
write('<tr>\n<td><a href="#" onclick="setHome(\'./homemain.html\')"
class="current">Home</a></td>\n</tr>');
write('<tr>\n<td><a href="#"
onclick="setSoftware(\'./software.html\')">Software</a></td>\n</tr>');
write('<tr>\n<td><a href="#"
onclick="setLinks(\'linksmain.html\')">Links</a></td>\n</tr>');
write('<tr>\n<td><a href="#"
onclick="setInfo(\'./informatie.html\')">Informatie</a></td>\n</tr>');
write('</table>');
write('</div>');
write('</body>');
write('</html>');
close();
setPage(pageCode);
}
}
....
function setPage(url) {
parent.mainframe.location.href = url.toString();
}