Solved

IIS7, HTML website, configure site so disclaimer page appears whatever is initially browsed.

Posted on 2014-09-16
3
234 Views
Last Modified: 2014-09-18
We have a new site that requires each user to accept the disclaimer before continuing into the site, the site is written in HTML and is running on a IIS7 server.  We have tried using HTTP redirect but that just gets stuck in a loop with it pointing at the same websitte.

Basically if someone browses to www.thesite.com/contactus  we would like it to show www.thesite.com/disclaimertext

Disclaimertext could be the Home Page.

We're no web experts I'm afraid.

Thank you

Ed
0
Comment
Question by:edwalters
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 29

Assisted Solution

by:becraig
becraig earned 167 total points
ID: 40326906
Are you asking to have the disclaimer text show up only on that page ?

You could simply use a div on the main page and use z-index to layer it on top and require the user to click ok before allowing them to see the specific page.

If that is what you have in mind I can probably give you a quick sample:

http://www.w3.org/wiki/CSS/Properties/z-index
0
 
LVL 81

Assisted Solution

by:David Johnson, CD, MVP
David Johnson, CD, MVP earned 166 total points
ID: 40326960
If you want to only show the disclaimer page once then on your pages check for the session cookie that you set once the disclaimer page has been displayed and the user clicks OK
0
 
LVL 29

Accepted Solution

by:
sammySeltzer earned 167 total points
ID: 40327078
Hi,

If you want your site visitors to accept disclaimer before continuing, I think the easiest thing to do is use the refresh meta tag to redirect user.

For instance, let's assume you have a default.html page or home.html page or whatever your initial landing page is, in our case, lets use default.html.

Have this text in default.html page:


<html>  
  <head>  
    <title>IU Webmaster redirect</title>  
     <META http-equiv="refresh" content="2;URL=disclaimer.html">  
      </head>  
       <body bgcolor="#ffffff">  
       </body>  
   </html> 

Open in new window


Basically, a user goes to www.thesite.com/default.html and the page immediately (in 2 seconds), redirects the user to the disclaimer page (disclaimer.html).

Then on this disclaimer page, display your text and present user with two links or buttons.

One says, Accept and the other says, No, thanks.

If the user clicks the Accept link or button, then the user continues to home page something like:

<a href="www.thesite.com/home.html">Accept</a>

If the user clicks on No thanks, the user is redirected to Goodbye page, something like:

<a href="www.thesite.com/goodbye.html">No, thanks</a>

Then on goodby.html page, have something to the effect, thanks for visiting.

Alternatively, you could have a simple javascript on default.html.

This javascript will have a checkbox that says Agree to terms and conditions.

If the user checks the box, the user clicks a button or link that says Continue and will be taken to home page.

If the user does not check the box, the Continue button will be grayed out and the user won't continue to home page.

I am sure there are more options out there.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question