I am sure this has been asked before but my google-fu was not able to find an answer.
I have a page of content and I want it so when a user presses a link or a button a form appears on top of the content. Once filled out and submitted it would get passed on to the ajax to process it.
I am sure this has been solved before as I’ve seen it on websites. Is there a simple way to do this, such as a jquery plugin or another javascript API?
Or would I have to write the form in the div by hand, overlay it with z-index in css and hide it. And then when it is called have the form appear?
What’s the easiest way to solve this? Thanks a lot
It sounds like you’re looking for a modal popup that fetches the form from the server through an HTTP request.
There are a lot of examples online. Check out jQuery ThickBox: http://jquery.com/demo/thickbox/
Even better, here is a page with over 30 examples to choose from: http://www.dottony.com/30-useful-ajax-lightbox-and-modal-dialog-solutions/