Solved

Using AJAX or JavaScript to create a disclaimer popup

Posted on 2010-11-12
5
586 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
ID: 34123973
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
ID: 34123980
** 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
ID: 34124354
How would I add a checkbox inside the messagebox?
0
 
LVL 10

Accepted Solution

by:
Tyler Laczko earned 250 total points
ID: 34124575
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
ID: 34136130
Wasn't really what I was looking for but does work.  I just went a different route.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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.
This article discusses how to create an extensible mechanism for linked drop downs.
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…

821 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