Last post May 30, 2014 06:49 AM by AidyF
May 30, 2014 06:42 AM|Bahare Feizi|LINK
I want to show login, register, contact us forms in a modal, I searched and most of result was about jquery ui modal or ajax pop up, but I heard jquery ui is heavy and also I dont want use ajax toolkit.
do you know any tutorial about showing form in a simple modal.
also I need do postback by pressing submit button without closing modal and show validation in modal if user enter wrong info.
thanks a lot
May 30, 2014 06:49 AM|AidyF|LINK
There is no such thing as a modal dialog in html, if you want to emulate one then I'm afraid you're going to have to use the likes of a jQuery plug-in, or the ajax toolkit. With the jQuery UI plugin you simply have your content on the page like normal but
in a div with a particular class attached. jQuery then hides that div and when required shows it in an absolute position on the screen. It's probably the easiest way of achieving what you want. If you don't want to use jQuery ui then google for modal box
scripts and you'll probably find quite a few with various levels of configuration and style, but they'll all behave much the same way.