#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
    Grumpier old Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jun 2003
    Posts
    14,428
    Rep Power
    4539
    Make sure your browser setting for 'show friendly http errors' is off, you may get a more helpful error message.
    ======
    Doug G
    ======
    The man who doesn't read good books has no advantage over the man who can't read them.
    --Mark Twain

IMN logo majestic logo threadwatch logo seochat tools logo