SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Jul 2000
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    simple (simply irritating) page refresh error in NN

    I have a VERY simple script to reload a page with fresh values when the value of a scroll menu changes. Trouble is, of course, NN 4.- freaks and closes the browser when this runs. No error warning, no error log, nada. Any advice at all??

    The line..
    <select name="Country" size="1" onChange="repopmenu(this,17)">

    The script..
    <script language="JavaScript">
    <!--
    function repopmenu(which,key)
    {
    n = which.value;
    var url = ("eventedit.asp?country=" + n + "&key=" + key)
    location.href = url;
    }
    //-->
    </script>

    Thanks all in advance for help. Cheers.
    marty_p

    MENZ.com site administrator.

  2. #2
    SitePoint Addict ThomasAesir's Avatar
    Join Date
    May 2002
    Location
    Sydney, Australia
    Posts
    214
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Lightbulb could be the .value

    The line:
    n = which.value;
    looks wrong, try this instead:
    n = which;
    Thomas Oeser - Blueprint Software
    Web Scripting Editor v 5.2 One cool Web editing tool.
    3dcomputergraphics.com Coming Soon!

  3. #3
    SitePoint Addict
    Join Date
    May 2000
    Posts
    313
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I would also remove the parens in this line:
    var url = ("eventedit.asp?country=" + n + "&key=" + key)


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •