I would like to use Fancybox to display the registration form in an iFrame. Then, as soon as the user fills in his data.
Details should be handled using ajax mechanisms in jQuery / Fancybox and values displayed in the same Fancybox iframe.
How can this be realized, I scratch my head all day, and I don’t know where I am wrong.
Below is my code
$("a.interested").fancybox({
'width': 400,
'height': 400,
'enableEscapeButton' : false,
'overlayShow' : true,
'overlayOpacity' : 0,
'hideOnOverlayClick' : false,
'type': 'iframe',
ajax: {
type : "POST",
cache : false,
url : "/components/profile/buyer/regbuyer1.php",
success: function(data) {
$.fancybox(data);
}
}
});
Some code examples will really help.
Thanx
source
share