I tried loading an iframe, since the form I'm using is loading a page
from Constant Contact. So on submit of the form, I want, instead of
an
old-school pop-up window, to load the page they've assigned in the
action to a lightbox. Here's my code, based on examples I found in
the
Usage area of Fancybox's website.
$(document).ready(function() {
$("#iframe").fancybox({
'hideOnContentClick': true,
'transitionIn' : 'elastic',
'transitionOut' : 'elastic',
'speedIn' : 600,
'speedOut' : 200,
'overlayShow' : false,
});
});
#iframe is the id on my submit button. I also tried it as my form id
to no avail.
On click the lightbox loads, but it displays the message "The
requested content cannot be loaded. Please try again later."
My assumption is that it's not passing the information from the form
into the URL that it's trying to open. I'm assuming I need some Ajax,
but am not sure how to what to do with it or why. It works as a
regular popup, I just can't get it to load the page using this
lightbox method.
Any further tips? Thank you so much!