Hey guys
Some Background
I had a simple html page the redirected the main frame to the page that was click on. My menu however got too big and I changed it to an aspx page.
1. To have rollup and dropdown menu's
2. So that one of the links could send a query string built from session variables.
Problem
One button (the report one) calls a function that servers dual purposes. It redirects the main page and the menu page (itself). However because (or so i believe) it is an aspx page and refreshes itself the menu is not redirected.
I am not sure how to go about fixing this. Any ideas to put me on track are appreciated.
The problem code looks like so.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>SiteManagerMenu</title>
<LINK href="CSS/Sitemanager.css" type="text/css" rel="stylesheet">
<SCRIPT language="javascript" id="clientEventHandlersJS">
<!--
function cmdReports_onclick() {
document.menudirect.action="ReportsMenu.htm";
document.redirect.action="SiteManagerMain.htm";
document.redirect.submit();
document.menudirect.submit();
}
//-->
</SCRIPT>
</HEAD>
<body MS_POSITIONING="FlowLayout">
<form name="Form1" method="post" action="SiteManagerMenu.aspx" id="Form1">
<input type="hidden" name="__VIEWSTATE" value="blah blah" />
<input type="image" name="cmdReports" id="cmdReports" onclick="javascript: return cmdReports_onclick();"src="/RoamingForest/Pix/Reports.gif" border="0" />
<P></P>
</form>
<form id="redirect" name="redirect" action="ModifySite.asp" target="main">
<INPUT id="self" style="VISIBILITY: hidden" type="text" value="sitemanager" name="self">
</form>
<form id="menudirect" name="menudirect" target="_self">
</form>
</body>
</HTML>
That'l do donkey, that'l do
Mark
Some Background
I had a simple html page the redirected the main frame to the page that was click on. My menu however got too big and I changed it to an aspx page.
1. To have rollup and dropdown menu's
2. So that one of the links could send a query string built from session variables.
Problem
One button (the report one) calls a function that servers dual purposes. It redirects the main page and the menu page (itself). However because (or so i believe) it is an aspx page and refreshes itself the menu is not redirected.
I am not sure how to go about fixing this. Any ideas to put me on track are appreciated.
The problem code looks like so.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>SiteManagerMenu</title>
<LINK href="CSS/Sitemanager.css" type="text/css" rel="stylesheet">
<SCRIPT language="javascript" id="clientEventHandlersJS">
<!--
function cmdReports_onclick() {
document.menudirect.action="ReportsMenu.htm";
document.redirect.action="SiteManagerMain.htm";
document.redirect.submit();
document.menudirect.submit();
}
//-->
</SCRIPT>
</HEAD>
<body MS_POSITIONING="FlowLayout">
<form name="Form1" method="post" action="SiteManagerMenu.aspx" id="Form1">
<input type="hidden" name="__VIEWSTATE" value="blah blah" />
<input type="image" name="cmdReports" id="cmdReports" onclick="javascript: return cmdReports_onclick();"src="/RoamingForest/Pix/Reports.gif" border="0" />
<P></P>
</form>
<form id="redirect" name="redirect" action="ModifySite.asp" target="main">
<INPUT id="self" style="VISIBILITY: hidden" type="text" value="sitemanager" name="self">
</form>
<form id="menudirect" name="menudirect" target="_self">
</form>
</body>
</HTML>
That'l do donkey, that'l do
Mark