Solved

Using AJAX or JavaScript to create a disclaimer popup

Posted on 2010-11-12
5
592 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 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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

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 …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
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…

726 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