Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using jQuery Fancybox or Lightbox to display a contact form

I would like to use jQuery Fancybox or Lightbox to load a contact form from a standard link in a web page. I have reviewed the documents at http://fancybox.net/example but the closest option is the iFrame one and it doesn't work with a standard page link.

My heart is not set on using Fancybox so if there is a better way to have the lightbox effect with a contact form I would appreciate someone pointing me in the right direction.

thanks.

like image 624
forrest Avatar asked Oct 12 '09 20:10

forrest


People also ask

What is Fancybox jQuery?

Fancybox saves you time and helps to easily create beautiful, modern overlay windows containing images, iframes, videos or any kind of HTML content.


2 Answers

you'll probably want to look into jquery-ui dialog. it's highly customizable and can be made to work exactly like lightbox/fancybox and supports everything you would need for a contact form from a regular link.

there is even an example with a form.

like image 102
helloandre Avatar answered Nov 10 '22 12:11

helloandre


Have a look at: Greybox

It's an awesome version of lightbox that supports forms, external web pages as well as the traditional images and slideshows. It works perfectly from a link on a webpage.

You will find many information on how to use Greybox and also some great examples. Cheers Kara

like image 1
Kara Duncan Avatar answered Nov 10 '22 11:11

Kara Duncan