Log in

View Full Version : Resolved IE9 Frame Trouble



keithboesker
12-27-2011, 04:51 PM
I have a frame issue in IE9 works in all other browsers. The error I keep getting is that it can't pass the getElementById. I try different compatible for IE but that's not working either. Any help would be appropriated. Thanks




<html>
<head>
<title>Admin Control Panel</title>
<meta http-equiv="content-type" content="application/xhtml xml; charset=utf-8">
<link rel="shortcut icon" href="/favicon.ico">
<script type="text/javascript" src="jquery.min.js"></script>
<script type="text/javascript" src="js_core.js"></script>
</head>

<script>
var currentpage = "adminpanel";
var isadminpanel = 1;
function admin_show(t) {
currentpage = t;
if(t=="website") {
document.getElementById("myframeset").rows = "50px,*,0";
} else if(t=="adminpanel") {
document.getElementById("myframeset").rows = "50px,0,*";
}
setmenublur(t);
}
function admin_home(t) {
admin_show(t);
if(t=="website") {
document.getElementById("admin_website").src = document.getElementById("admin_website").src;
} else if(t=="adminpanel") {
document.getElementById("admin_adminpanel").src = document.getElementById("admin_adminpanel").src;
}
}
function admin_reloadbar() {
document.getElementById("admin_bar").src = "bar.asp?loadbar";
admin_show("adminpanel");
}
function setmenublur(t) {
var who = document.getElementById("admin_bar");
var doc2 = who.contentWindow.document || who.contentDocument;
if(t=="website") {
if($.browser.msie) {
doc2.getElementById("menublur_website").style.display = "";
doc2.getElementById("menublur_adminpanel").style.display = "none";
} else {
$(doc2.getElementById("menublur_website")).fadeIn("medium");
$(doc2.getElementById("menublur_adminpanel")).fadeOut("medium");
}
} else {
if($.browser.msie) {
doc2.getElementById("menublur_website").style.display = "none";
doc2.getElementById("menublur_adminpanel").style.display = "";
} else {
$(doc2.getElementById("menublur_website")).fadeOut("medium");
$(doc2.getElementById("menublur_adminpanel")).fadeIn("medium");
}
}
}
</script>
<frameset id=myframeset rows="50,0,*" border=0 style="z-index:1;">
<frameset id=myframeset cols="*" border=0 style="z-index:1;">
<frame id=admin_bar src="bar.asp?loadbar" scrolling=no noresize frameborder=0 marginheight=0 marginwidth=0>
</frameset>
<frameset id=myframeset cols="*" border=0 style="z-index:1;">
<frame id=admin_website name=admin_website src="/" noresize frameborder=0 marginheight=0 marginwidth=0>
</frameset>
<frameset id=myframeset cols="*" border=0 style="z-index:1;">
<frame id=admin_adminpanel name=admin_adminpanel src="dashboard.asp" noresize frameborder=0 marginheight=0 marginwidth=0>
<noframes>Your browser has to support FRAMES in order to access your admin panel.</noframes>
</frameset>
</frameset>
</html>

keithboesker
12-27-2011, 06:18 PM
Fixed it