refreshing current page when face box fades

78 Views Asked by At

I have a link that has a rel="facebox". When it is clicked it runs a php script from a separate file. I want to refresh the page automaticaly when the facebox fades. How can I do it? I've tried the headers and metas but it is not working.

1

There are 1 best solutions below

0
On BEST ANSWER

You can bind event afterClose.facebox:

$(document).bind('afterClose.facebox', function() {
    location.reload();
});