Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Javascript (http://www.velocityreviews.com/forums/f68-javascript.html)
-   -   window.location.href not working in IE for every page (http://www.velocityreviews.com/forums/t932817-window-location-href-not-working-in-ie-for-every-page.html)

Sunshine 09-11-2007 06:33 PM

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.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57