<!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.6000.16705" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>well, simply open any plugin or coreplugin php file and look
at the class declaration.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>then you use the renderForm function, example in pretty much
all plugin or coreplugin</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>if you intend to use ajax, your class must also implement
Ajaxable, then you can use the ajaxGetPluginResponse function, example in
pretty much all plugin or coreplugin too</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=valerionoti@yahoo.it href="mailto:valerionoti@yahoo.it">Valerio
Noti</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=oliver.christen@camptocamp.com
href="mailto:oliver.christen@camptocamp.com">Oliver Christen</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Cc:</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> Wednesday, September 10, 2008 9:37
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Cartoweb-users] Geoloc
coordinates in a new window</DIV>
<DIV><BR></DIV>
<DIV dir=ltr>Oliver,<BR>not able to do this. Could you point me to some sample
code (in wiki or somewhere else)?<BR><BR>Thank you<BR><BR>Valerio<BR><BR><BR>
<DIV class=gmail_quote>2008/9/9 Oliver Christen <SPAN dir=ltr><<A
href="mailto:oliver.christen@camptocamp.com">oliver.christen@camptocamp.com</A>></SPAN><BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV bgcolor="#ffffff">
<DIV><FONT size=2>Hi</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>the plugin class
must implements GuiProvider, then you can output variable to
the template and, if you want, trigger some javascript.</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: rgb(0,0,0) 2px solid; MARGIN-RIGHT: 0px">
<DIV>
<DIV></DIV>
<DIV class=Wj3C7c>
<DIV
style="FONT: 10pt arial; font-size-adjust: none; font-stretch: normal">-----
Original Message ----- </DIV>
<DIV
style="BACKGROUND: rgb(228,228,228); FONT: 10pt arial; font-size-adjust: none; font-stretch: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial"><B>From:</B>
<A title=valerionoti@yahoo.it href="mailto:valerionoti@yahoo.it"
target=_blank>Valerio Noti</A> </DIV>
<DIV
style="FONT: 10pt arial; font-size-adjust: none; font-stretch: normal"><B>To:</B>
<A title=cartoweb-users@lists.maptools.org
href="mailto:cartoweb-users@lists.maptools.org"
target=_blank>cartoweb-users@lists.maptools.org</A> </DIV>
<DIV
style="FONT: 10pt arial; font-size-adjust: none; font-stretch: normal"><B>Sent:</B>
Tuesday, September 09, 2008 12:17 PM</DIV>
<DIV
style="FONT: 10pt arial; font-size-adjust: none; font-stretch: normal"><B>Subject:</B>
[Cartoweb-users] Geoloc coordinates in a new window</DIV>
<DIV><BR></DIV>
<DIV dir=ltr>Hi all,<BR>I installed geoloc plugin and works fine.<BR>I'd
like to show coordinates in a new window instead of an alert
message.<BR>In geoloc php file I commented this line:<BR>//
$this->getCartoclient()->addMessage('geo_x='.$this->Geo_x.',geo_y='.$this->Geo_y);<BR>Where
(and how) can I write a javascript window.open method and pass to the new
window Geo_x and Geo_y<BR>parameters?<BR><BR>I tried without success to
insert it in renderFormPrepare function:<BR>return array('geoloc_active'
=>
$this->pluginStatus,<BR>
'geo_x' =>
$this->Geo_x,<BR>
'geo_y' =>
$this->Geo_y);<BR>
//open a new
window...<BR>
........<BR><BR><BR>Thanks in advance<BR><BR>Valerio<BR></DIV></DIV></DIV>
<P></P>
<HR>
<P></P>_______________________________________________<BR>Cartoweb-users
mailing list<BR><A href="mailto:Cartoweb-users@lists.maptools.org"
target=_blank>Cartoweb-users@lists.maptools.org</A><BR><A
href="http://lists.maptools.org/mailman/listinfo/cartoweb-users"
target=_blank>http://lists.maptools.org/mailman/listinfo/cartoweb-users</A><BR></BLOCKQUOTE></DIV></BLOCKQUOTE></DIV><BR><BR
clear=all><BR>-- <BR>/* <BR>Valerio
Noti<BR>*/<BR></DIV></BLOCKQUOTE></BODY></HTML>