<div dir="ltr">Hi Oliver,<div>this is an old thread about geoloc plugin. I followed your instructions but after inserting:</div><div>X = <span id="<font size="3">geo_x</font>">{$<font size="3">geo_x</font>}</span> Y = <span id="<font size="3">geo_y</font>">{$<font size="3">geo_y</font>}</span> in cartoclient.tpl</div>
<div>{$<font size="3">geo_x</font>} and {$<font size="3">geo_y</font>} are not updated (need to refresh the page).</div><div>I use cartoweb3.4 with ajax on.</div><div><br></div><div>Furthermore, where can I write javascript window.open statement? directly in renderFormPrepare function?</div>
<div><br></div><div><br></div><div>Thank you very much<br></div><div><br></div><div><br></div><div>Valerio</div><br><br><div class="gmail_quote">2008/6/18 Oliver Christen <span dir="ltr"><<a href="mailto:oliver.christen@camptocamp.com">oliver.christen@camptocamp.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div bgcolor="#ffffff">
<div><font size="2">Hi</font></div>
<div><font size="2"></font> </div>
<div><font size="2">all you need to do is to modify the geoloc plugin to output
some template instead of using the actuel user message system.</font></div>
<div><font size="2">there are plenty of examples in the wiki's "how to" and also
in the mailing list about how to do that.</font></div>
<div><font size="2"></font> </div>
<div><font size="2">in short, </font></div>
<div><font size="2">remove/comment the line</font></div>
<div>$this->getCartoclient()->addMessage('geo_x='.$this->Geo_x.',geo_y='.$this->Geo_y);</div>
<div><font size="2"></font> </div>
<div><font size="2">modify the renderFormPrepare function:</font></div>
<div>return array('geoloc_active' => $this->pluginStatus,</div>
<div>
<div>
'geo_x' =>
$this->Geo_x,</div>
'geo_y' => $this->Geo_y);</div>
<div><font size="2"></font> </div>
<div><font size="2">modify your Cartoclient.tpl:</font></div>
<div><font size="2">X = <span id="<font size="3">geo_x</font>">{$<font size="3">geo_x</font>}</span> Y = <span id="<font size="3">geo_y</font>">{$<font size="3">geo_y</font>}</span></font></div>
<div><font size="2"></font> </div>
<div><font size="2">( the spans with an id are important because thats how the
values placeholder are found and updated when using ajax)</font></div>
<div><font size="2"></font> </div>
<div><font size="2">regards</font></div>
<div><font size="2">Oliver</font></div>
<blockquote style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;"><div><div></div><div class="Wj3C7c">
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">----- Original Message ----- </div>
<div style="background: rgb(228, 228, 228) none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">
<b>From:</b>
<a title="mannobug@gmail.com" href="mailto:mannobug@gmail.com" target="_blank">mannobug
mannobug</a> </div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; 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-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Sent:</b> Saturday, June 14, 2008 12:11
PM</div>
<div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Subject:</b> [Cartoweb-users] GEoloco
coordiantese selectable</div>
<div><br></div>
<div>Hi all,</div>
<div>I downloaded geoloc.zip plugin and after installation it was everything
ok.</div>
<div>Clicking on my map I retrieve coordiantes vai addMessage(...) function
call.</div>
<div>I want to make the result of addMessage selectable, thus I like to add
coordiantes in ad geoloc template but I'm really in trouble.</div>
<div>I found on previups discussion in this mailing list some information
(e.g. retrive coordinates from map, and so on, ...) but i'm still locked
because no solution run for me :-(</div>
<div>Can anyone show me how to do this , thus make selectable or writebale to
clipboard coordinates retrived?</div>
<div>It's really important, I must develop this in time for my thesis
:-)</div>
<div>Thanks all... Regards.</div>
<div>Emmanuele</div>
</div></div><p>
</p><hr>
<p></p><br></blockquote></div><br>
<br></blockquote></div><br>
</div>