I have an iframe on siteB with has a from from siteA when the user on siteB clicks on the submit
<input type="submit" value="Save url" name="commit" method="post" id="url_submit">
I need the lightbox to close
i tried adding
$('#url_submit').click(function(){
$.fn.fancybox.close();
});
to both sites and nothing and i am sort of confused
First off, are siteA and siteB under the same domain? If so, you can try
But if they’re not, you’ll have to create a callback url that closes your fancybox, and when your form is submitted redirect to this url.