[jQuery] Re: Modal Window Page Refresh

2008-10-22 Thread tlphipps

window.location.reload();
Reference: http://www.w3schools.com/HTMLDOM/met_loc_reload.asp

If you call this from an iframe, you might need to do:
window.top.location.reload();

On Oct 21, 10:39 pm, 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.


[jQuery] Re: Modal Window Page Refresh

2008-10-22 Thread Alexandre Plennevaux

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.