depending on which modal window you use, of course.
Personally, I use jqModal, which has a handy onClose callback. I also
had the need to, in some cases, refresh the main page after modal
close. So i added an option variable (boolean) telling if it should
refresh or not after closing the modal.
I wrote a complete how-to here:
http://www.pixeline.be/blog/2008/javascript-loading-external-urls-in-jqmodal-jquery-plugin/
the bit of code you are interested in is:
if (hash.refreshAfterClose == true)
{
window.location.href = document.location.href;
}
On Wed, Oct 22, 2008 at 5:39 AM, kulman [EMAIL PROTECTED] wrote:
Hi friends,
Need your help: how to reload a page (which contains data from
database) when the user updates and closes modal window (so that the
data on the page is refreshed)?
Thanks a lot.