Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

disclaimer box

Posted on 2010-09-16
5
Medium Priority
?
409 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 83

Accepted Solution

by:
leakim971 earned 1000 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 83

Expert Comment

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

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

There are a couple ways to attach a JavaScript function to dynamically created elements. You can make a new script for each element as it’s created or you can use delegation. Delegation allows a single script that is added at page creation to mat…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
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…
Suggested Courses

886 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