Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7589397
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T20:08:55+00:00 2026-05-30T20:08:55+00:00

I have an index page that detects if users have JavaScript and cookies enabled

  • 0

I have an index page that detects if users have JavaScript and cookies enabled before going to the Login page. The login page will only show the login form if both are enabled.

I first set a cookie on the index page. If the cookie is read on the Login page, then cookies are enabled. If JavaScript is disabled, it redirects to the login page with a querystring letting me know it failed.

My problem now is that the redirect in the keeps firing even when scripts are enabled. What do I need to change here?

<html>
<head>

<%
    response.cookies("enabled")="1" 
%>

<noscript>
    <%response.redirect("http://www.test.com/test/login.asp?noscript=true&settingsCheck=1")%>
</noscript>
<%
    response.redirect("http://www.test.com/test/login.asp?&settingsCheck=1")
%>
</head>
<body>

</body>
</html>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T20:08:57+00:00Added an answer on May 30, 2026 at 8:08 pm

    NOSCRIPT is a client tag. <% ... %> executes server-side. Thus, the code inside the NOSCRIPT tag is still evaluated on the server regardless of the surrounding markup.

    You could use a META refresh tag to accomplish the redirect on the client. This does not require script, so it could be placed within the NOSCRIPT tag. This is valid HTML 5 markup.

    <noscript>
        <meta http-equiv="refresh" content="0; url=http://www.foo.com?script=false">
    </noscript>
    <script>
        window.location.href = "http://www.foo.com?script=true";
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an index page that I want to show all the users' profile
I have a customer index page that displays customer lists. I have a search
I have a function that I use on index.php page and I would like
I have an index.html.erb page timesheet that has various js and jquery tables and
Ok, So I have a form that is on page 'index.html'. The user submits
I have index.html page with <h:dataTable id=usersTable value=#{mainViewController.users} var=user border=1> .... and request scoped
I have a text field in a form_tag on my index page that should
I would like to have a My_Events page, which only display events that current
I have an index page animation that I designed with jQuery that is not
I have my index page which posts a single entry instead of the usual

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.