Solved

Using AJAX or JavaScript to create a disclaimer popup

Posted on 2010-11-12
5
579 Views
Last Modified: 2012-05-10
I have a modalpopup that the user enters in information for his request.  Once he has filled out the form, I want a disclaimer to popup before it submits the form.  I need the popup to have an 'I Agree' checkbox that disables the OK button until 'I Agree' is checked.  I'm open to any ideas.  I can post some code if needed.
0
Comment
Question by:gfedz
  • 3
  • 2
5 Comments
 
LVL 10

Expert Comment

by:Tyler Laczko
Comment Utility
in your <form> tag put onSubmit="checkForm()"

checkForm is a js function that return true if clicked ok, false if clicks cancel

0
 
LVL 10

Expert Comment

by:Tyler Laczko
Comment Utility
** that is how i do it with my web development. P.S. checkForm() is a function that you need to write.
0
 
LVL 1

Author Comment

by:gfedz
Comment Utility
How would I add a checkbox inside the messagebox?
0
 
LVL 10

Accepted Solution

by:
Tyler Laczko earned 250 total points
Comment Utility
Don't use a checkbox.

js has a function confirm()



i would do:

confirm("Confirm data entered.");

this will popup with an ok or cancel popup
0
 
LVL 1

Author Closing Comment

by:gfedz
Comment Utility
Wasn't really what I was looking for but does work.  I just went a different route.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction HyperText Transfer Protocol (http://www.ietf.org/rfc/rfc2616.txt) or "HTTP" is the underpinning of internet communication.  As a teacher of web development I have heard many questions, mostly from my younger students who have come to t…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
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…

728 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

14 Experts available now in Live!

Get 1:1 Help Now