#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2012
    Posts
    2
    Rep Power
    0

    ASP Javascript giving a 500 error


    This is so simple but I keep getting a 500

    Code:
    <% If Session("CountryCode") = "US" Then %>
    <script type="text/javascript" language="javascript">
    // directly jump page 
    window.location.href = 'http://www.icbla.org/Crisis/US/Request.asp';
    // definite time to jump page
    setTimeout("javascript:location.href='http://www.icbla.org/Crisis/US/Request.asp'", 5000);
    </script>
    <% End If %>
    Anyone have an idea why it is not working????
  2. #2
  3. No Profile Picture
    Stumpier old Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jun 2003
    Posts
    14,409
    Rep Power
    4538
    Make sure your browser setting for 'show friendly http errors' is off, you may get a more helpful error message.
    ======
    Doug G
    ======
    It is a truism of American politics that no man who can win an election deserves to. --Trevanian, from the novel Shibumi

IMN logo majestic logo threadwatch logo seochat tools logo