?
Solved

Using AJAX or JavaScript to create a disclaimer popup

Posted on 2010-11-12
5
Medium Priority
?
598 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
[X]
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
  • 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 750 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

The most up-to-date version of this article is on my Blog https://iconoun.com/blog/
I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
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

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