<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.3790.2491" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>Hi <FONT face=Verdana>Raihan,</FONT></FONT></DIV>
<DIV><FONT face=Verdana size=2>Thats exactly what the piece of script i sent is
used to.</FONT></DIV>
<DIV><FONT face=Verdana size=2>Run that function on the opener
side when you open the new windows. When the new windows is closed, the
try() will fail hence the new window is closed, then simply refresh or reset the
opener side. (</FONT><FONT face=Verdana size=2>Replace //do action by
resetSession (); in the script).</FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2>This is the only way i found to handle cross
domain window action.</FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2>Regards</FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=h_raihan@erp-bd.com href="mailto:h_raihan@erp-bd.com">Hasan A.
Raihan</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=oliver.christen@camptocamp.com
href="mailto:oliver.christen@camptocamp.com">oliver</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, April 24, 2006 9:09
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Cartoweb-users] Refreshing
from another url</DIV>
<DIV><BR></DIV>
<DIV>
<DIV><FONT face=Verdana size=2>Oliver,</FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2>Thanks for fast replying.</FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2>But I like to refresh the opener(cartoweb)
page when closing the </FONT></DIV>
<DIV><FONT face=Verdana size=2>opened(popup) page. </FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2>Something like the following code in the
onclick event of close button of the popup.</FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2>window.opener.location.reload();</FONT></DIV>
<DIV><FONT face=Verdana size=2>self.close();</FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2>Raihan</FONT></DIV>
<P>----- Original Message ----- </P></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=oliver.christen@camptocamp.com
href="mailto:oliver.christen@camptocamp.com">oliver</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=h_raihan@erp-bd.com
href="mailto:h_raihan@erp-bd.com">Hasan A. Raihan</A> ; <A
title=Cartoweb-users@lists.maptools.org
href="mailto:Cartoweb-users@lists.maptools.org">Cartoweb-users@lists.maptools.org</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, April 24, 2006 12:22
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Cartoweb-users]
Refreshing from another url</DIV>
<DIV><BR></DIV>
<DIV><FONT size=2>One solution is to have a javascript function on the
opener side that check, say, every 5 sec, if the opened page is still open.
</FONT></DIV>
<DIV><FONT size=2>something like:</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>function isopenCheck () {<BR> var delay =
5000;<BR> timerID = self.setTimeout("checkOpen()",
delay);<BR>}<BR>function checkOpen() {<BR> if
(window.name_of_the_opened_window &&
window.name_of_the_opened_window.open &&
!window.name_of_the_opened_window.closed)
{<BR> try
{<BR>
name_of_the_opened_window.location.href<BR> }
catch (e) {<BR> // if error, then
cant access property, hence, domain
changed<BR> //do
action<BR> }<BR> } else
{<BR> // do other action</FONT></DIV>
<DIV><FONT size=2> return;<BR> }<BR>}</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>this will only work if you open the external page via a
windows.open javascript function, but it should do the trick</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Regards</FONT></DIV>
<DIV><FONT size=2>Oliver</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=h_raihan@erp-bd.com href="mailto:h_raihan@erp-bd.com">Hasan A.
Raihan</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=Cartoweb-users@lists.maptools.org
href="mailto:Cartoweb-users@lists.maptools.org">Cartoweb-users@lists.maptools.org</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, April 24, 2006 7:23
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [Cartoweb-users] Refreshing
from another url</DIV>
<DIV><BR></DIV>
<DIV><FONT face=Verdana size=2>Hi list,</FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2>I have a plugin, that invoke a
page from different domain.</FONT></DIV>
<DIV><FONT face=Verdana size=2>Now I need to refresh the map when the
opened page close.</FONT></DIV>
<DIV><FONT face=Verdana size=2>The window.opener.location.reload()
function doesnot work because</FONT></DIV>
<DIV><FONT face=Verdana size=2>the popup is in different
domain.</FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2>Do I have any other option to do
that?</FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2>Best Regards,</FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2>Hasan A. Raihan<BR>System Analyst<BR>ERP
Systems Limited<BR>17/C (2nd Floor), Monipuripara <BR>Dhaka - 1215,
Bangladesh.<BR>Tel: 9131551<BR>Email: <A
href="mailto:h_raihan@erp-bd.com">h_raihan@erp-bd.com</A> </FONT></DIV>
<P>
<HR>
<P></P>_______________________________________________<BR>Cartoweb-users
mailing
list<BR>Cartoweb-users@lists.maptools.org<BR>http://lists.maptools.org/mailman/listinfo/cartoweb-users<BR></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>