Hi all can some body please point out the correct method to go about
refreshing/reloading the main window after you have closed a popup window.

I am uploading thumbnail images from inside the popup, then returning to a
list page showing the thumbnail images. Problem is at the moment I close
the pop up with window.close() this is ok but you have to refresh the main
original window to see the image you have just U/L. I tried putting
onGotFocus in the body tag to run window.location.reload() but this puts
it into a bad loop.

Any suggestions? 

Thanks

Stephen  


code to open popup:

var window1 = null

  function InfoWindow(page, width, height)
  {
   var string =
"width="+width+",height="+height+",resizable=1,scrollbars=1";
    if (!window1  || window1.closed)
     {
     window1 = window.open(page, "",string);
     if (window1.opener) window1.opener = window
    }
   else
    {
      window1.focus()
      window1.location = page
    }
    return false; // for onclick
  }

***************************
launched from href:

<a href="/asp/admin/Upload_Image.asp?ID=<%=rs("HID")%>" 
onclick="InfoWindow('/asp/admin/Upload_Image.asp?ID=<%=rs("HID")%>', 400, 400);return
false"><img src="/asp/admin/images/upload.gif" alt="Upload thumbnail Image" 
border="0"></a>

____ • The WDVL Discussion List from WDVL.COM • ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] 
       Send Your Posts To: [EMAIL PROTECTED]
To change subscription settings to the wdvltalk digest version:
    http://wdvl.internet.com/WDVL/Forum/#sub

________________  http://www.wdvl.com  _______________________

You are currently subscribed to wdvltalk as: archive@jab.org
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to