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

    Join Date
    Jan 2012
    Rep Power

    ASP Javascript giving a 500 error

    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);
    <% 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
    Rep Power
    Make sure your browser setting for 'show friendly http errors' is off, you may get a more helpful error message.
    Doug G
    I've never been able to appreciate the sublime arrogance of folks who feel they were put on earth just to save other folks from themselves .." - Donald Hamilton

IMN logo majestic logo threadwatch logo seochat tools logo