<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Giuseppe,<br>
<br>
just a guess:<br>
The window.open function returns the handle to the window. If I am not
mistaken, this will be displayed in the original window after clicking
the link. Since it returns an object, it says [Object]. Try<br>
<pre wrap=""><A href=<a class="moz-txt-link-rfc2396E" href="javascript:void(0);">"javascript:void(0);"</a> onclick="window.open('URL', 'nom_de_la_fenetre','options_de_la_fenetre')">Image</A></pre>
or<br>
<pre wrap=""><div onclick="window.open('URL', 'nom_de_la_fenetre','options_de_la_fenetre')">Image</div></pre>
If it won't work either way, try writing a separate JavaScript
function, e.g.:<br>
<br>
<tt><code> function mypopup(</code>...<code>) {<br>
mywindow = window.open (...);<br>
} </code><br>
</tt><br>
and call it in the a-tag:<br>
<pre wrap=""><A href="javascript:<tt><code>mypopup</code></tt>(...)">Image</A>
</pre>
These are the only options that came into my mind at the moment.<br>
<br>
Regards,<br>
Dirk<br>
<br>
<br>
<br>
<br>
<a class="moz-txt-link-abbreviated" href="mailto:giuseppe.derossi@email.it">giuseppe.derossi@email.it</a> wrote:
<blockquote cite="mid:ec0ee7e2381644ed7635de72d2ae319f@164.129.1.43"
type="cite">
<pre wrap="">Hi,
I've added the following instruction linked to an image in the
cartoclient.tpl :
<A href=<a class="moz-txt-link-rfc2396E" href="javascript:window.open('URL','nom_de_la_fenetre','options_de_la_fenetre')">"javascript:window.open('URL', 'nom_de_la_fenetre',
'options_de_la_fenetre')"</a>>Image</A>
So that when a user click on the image a new IE windows has been opened.
I get the window opened but the origin page which contain my project becames
blank and only I see [Object], and I've manually to reload the page.
I know It is a silly question but what is wrong ?
Thank's
Giu
--
Email.it, the professional e-mail, gratis per te: <a class="moz-txt-link-freetext" href="http://www.email.it/f">http://www.email.it/f</a>
Sponsor:
Lo sai che hai un tesoro in soffitta? Quello che non serve più a te, può
servire agli altri.
Vendi GRATIS ciò che vuoi con AdBoom.it
Clicca qui: <a class="moz-txt-link-freetext" href="http://adv.email.it/cgi-bin/foclick.cgi?mid=6418&d=20070507">http://adv.email.it/cgi-bin/foclick.cgi?mid=6418&d=20070507</a>
_______________________________________________
Cartoweb-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Cartoweb-users@lists.maptools.org">Cartoweb-users@lists.maptools.org</a>
<a class="moz-txt-link-freetext" href="http://lists.maptools.org/mailman/listinfo/cartoweb-users">http://lists.maptools.org/mailman/listinfo/cartoweb-users</a>
</pre>
</blockquote>
</body>
</html>