window.location.href not working in IE for every page

Discussion in 'Javascript' started by Sunshine, Sep 11, 2007.

  1. Sunshine

    Sunshine Guest

    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');">Change
    Password</a></li>
    <li><span class="mnudivider mnudividery" ></span></li>
    <li><a href="javascript:Menu_onclick('Func=MfaAdmin');">Who 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');">Who 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.
    Sunshine, Sep 11, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Darin Browne

    Javascript location.href not working

    Darin Browne, Nov 20, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    3,442
    Natty Gur
    Nov 23, 2003
  2. Jiong Feng
    Replies:
    9
    Views:
    1,361
    Lasse Reichstein Nielsen
    Jun 24, 2004
  3. saiho.yuen
    Replies:
    3
    Views:
    421
    kaeli
    Sep 14, 2004
  4. Replies:
    2
    Views:
    461
  5. Alex Bird
    Replies:
    3
    Views:
    179
    Thomas 'PointedEars' Lahn
    May 9, 2008
Loading...

Share This Page