Submitting form using Fancybox Ajax capabilities within an iFrame
there is two way:
1:
1:
$("a.interested").fancybox({
'width': 400,
'height': 400,
'enableEscapeButton' : false,
'overlayShow' : true,
'overlayOpacity' : 0,
'hideOnOverlayClick' : false,
'type': 'iframe',
'href': "/components/profile/buyer/regbuyer1.php" //or any other url that contains the contents of that iframe
});
2:
$("a.interested").click(function(){ $.ajax: { type : "POST", cache : false, url : "/components/profile/buyer/regbuyer1.php", success: function(data) { $.fancybox({ 'width': 400, 'height': 400, 'enableEscapeButton' : false, 'overlayShow' : true, 'overlayOpacity' : 0, 'hideOnOverlayClick' : false, 'content' : data }); } } });
Comments
Post a Comment