Solved

disclaimer box

Posted on 2010-09-16
5
392 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
Comment Utility
0
 
LVL 2

Expert Comment

by:WilliamStam
Comment Utility
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
Comment Utility
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
Comment Utility
easy to implement, and it works
0
 
LVL 82

Expert Comment

by:leakim971
Comment Utility
Thanks for the points!
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Responsive CSS question 2 37
lastpass auto fill login form 5 20
JavaScript error 1 32
jQuery Canlendar click function 5 18
Requirements JQuery 1.6+ HTML CSS Introduction This article was inspired by an EE question (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28372511.html) on how to make a page show some balloons animate up a page…
PROBLEM: The other day I was working on adding an ajax request to a webpage that already had a dialog box on the page.  The dialog box was using relative positioning to be positioned next to a form field I had on the page.  Everything was working…
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…

762 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now