سؤال

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.

هل كانت مفيدة؟

المحلول

You can bind event afterClose.facebox:

$(document).bind('afterClose.facebox', function() {
    location.reload();
});
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top