![]() |
window.location.href not working in IE for every page
I'm working on a web page and I've run into an issue. I'm fairly new
to JavaScript and web programming so I'm having some trouble debugging the code. I have a menu which has submenu links that open up various web pages. Here is a portion of the menu code.... <li><a class="mnuparent" href="#" style="padding:0px;"><img class="mnu-is mnu-ia" src="/%HOMEPATH%/images/nav/PREFERENCES.gif" width="125" height="24" alt="Preferences"></a> <ul> <li><a href="javascript:Menu_onclick('Func=ChMemNfo-%MEMNUM %');">Member Info</a></li> <li><span class="mnudivider mnudividery" ></span></li> <li><a href="javascript:Menu_onclick('Func=Chgpwd');">Cha nge Password</a></li> <li><span class="mnudivider mnudividery" ></span></li> <li><a href="javascript:Menu_onclick('Func=MfaAdmin');">W ho RU Settings</a></li> </ul></li> There is a javascript located in a .js file with a call in the <head> <script language="JavaScript" type="text/javascript" src="/%HOMEPATH%/ js/Navigation.js"></script> --> function Menu_onclick(value){ var oVal; var oURL; oVal = value; if (oVal == "NA"){ //do nothing } else { oURL = "/scripts/ibank.dll?homepath=%HOMEPATH%&" + oVal; parent.main.window.location.href = oURL; } } This code is working fine for all links including the Who RU Settings in Safari 3.0.3, Firefox 2.0.0.6, and Netscape Navigator 9.0b3. This link is the one I'm having problems with in IE7 and Opera 9.23 -- > <li><a href="javascript:Menu_onclick('Func=MfaAdmin');">W ho RU Settings</a></li> The MFA Admin code is out on another server. When I click the Who RU Settings link in IE7 and Opera 9.23 the Who RU Settings page is displayed. However once the Who RU Settings page is active you get a message in IE7 "Error on page" when any of the other links are clicked. IE is says it is a Permission denied error but I think it is something with the javascript. I have maximum security to both servers so I can't imagine it to be a permission problem and all pages from both servers are "https:" pages. Any ideas what could be causing this with IE7 and Opera? I would greatly appreciate any help. Thanks. |
| All times are GMT. The time now is 12:42 AM. |
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.