Test country to jump to URL -- 500 error

Discussion in 'JavaScript' started by Cambassador, Jan 20, 2012.

  1. #1
    This is so simple but I keep getting a 500

    '<% 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????
     
    Last edited: Jan 20, 2012
    Cambassador, Jan 20, 2012 IP
  2. JohnnySchultz

    JohnnySchultz Peon

    Messages:
    277
    Likes Received:
    4
    Best Answers:
    7
    Trophy Points:
    0
    #2
    are you sure that's the part that causes it?
     
    JohnnySchultz, Jan 24, 2012 IP