Solved

disclaimer box

Posted on 2010-09-16
5
404 Views
Last Modified: 2013-11-05
I'm looking for a script that will display a box with a disclaimer, and a check box that will enable an okay button. This will be run from an .aspx page.

Cheers,
brendan
0
Comment
Question by:brendanlefavre
[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
  • 2
  • 2
5 Comments
 
LVL 82

Accepted Solution

by:
leakim971 earned 250 total points
ID: 33697144
0
 
LVL 2

Expert Comment

by:WilliamStam
ID: 33711079
if you dont come right let me know... will rush something up.

im thinking... a div positioned ontop of the rest of the pages content... fixed.. so it scrolls with scrolling.. then a

<input type="button" disabled="disabled" id="accept" value="ok" /> // yeah i know the button is correct but you get the idea

add a checkbox

$("#checkbox").click(function(){
 if ($(this).is(":checked")){
  $("#accept").attr("disabled","");
 } else {
  $("#accept").attr("disabled","disabled");
 }
});

so basicaly if you click on the checkbox and its checked it will enable the button.. if not then it disables it.
0
 

Author Comment

by:brendanlefavre
ID: 33774144
The dialog works, and is fairly straight forward to implement. One question, what would be the best way to implement a check to see if the user has accepted the agreement during the current session?

Cheers,
Brendan
0
 

Author Closing Comment

by:brendanlefavre
ID: 33802374
easy to implement, and it works
0
 
LVL 82

Expert Comment

by:leakim971
ID: 33802412
Thanks for the points!
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

623 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