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
Solved

disclaimer box

Posted on 2010-09-16
5
398 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
  • 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Access RV042 GUI / Browser Issues 25 45
jQuery dialog box help 2 17
Wordpress Pagination 1 28
JQuery Search Filter 2 27
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
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…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)
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…

792 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