<!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.16788" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV>
<DIV><FONT face=Arial>Hi Steve,</FONT></DIV>
<DIV><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial>about your e-mail:</FONT></DIV><FONT face=Arial>
<DIV><BR>* I'm also interested in using the Google maps API from Seaside. I am 
far from<BR>* an expert but it's possible to use an HttpRequest object to do 
this from the<BR>* server.</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2>I solve it with:&nbsp;&nbsp;&nbsp; HTTPSocket httpGet: 
url</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV><FONT size=2></FONT>
<DIV><BR>* My question is why would you do it from the server when you could 
make the<BR>* request directly from the user's browser using the JavaScript 
API?<BR></DIV>
<DIV><FONT size=2>My input from user's browser , based on Magritte, is a 
string.</FONT></DIV>
<DIV><FONT size=2>I'm not a javascript expert and i d'ont know how integrate it 
with seaside field.</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>In the Google documentation i found this javascript but how 
integrate it with my input data ?</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
"<A 
href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd</A>"&gt;<BR>&lt;html 
xmlns="<A href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</A>" 
xmlns:v="urn:schemas-microsoft-com:vml"&gt;<BR>&nbsp; 
&lt;head&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;meta http-equiv="content-type" 
content="text/html; charset=UTF-8"/&gt;<BR>&nbsp;&nbsp;&nbsp; 
&lt;title&gt;Google Maps API Example: Simple 
Geocoding&lt;/title&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;script src="<A 
href="http://maps.google.com/maps?file=api&amp;amp;v=2.x&amp;amp;key=ABQIAAAAzr2EBOXUKnm_jVnk0OJI7xSosDVG8KKPE1-m51RBrvYughuyMxQ-i1QfUnH94QxWIa6N4U6MouMmBA">http://maps.google.com/maps?file=api&amp;amp;v=2.x&amp;amp;key=ABQIAAAAzr2EBOXUKnm_jVnk0OJI7xSosDVG8KKPE1-m51RBrvYughuyMxQ-i1QfUnH94QxWIa6N4U6MouMmBA</A>" 
type="text/javascript"&gt;&lt;/script&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;script 
type="text/javascript"&gt;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2>&nbsp;&nbsp;&nbsp; var map = null;<BR>&nbsp;&nbsp;&nbsp; var 
geocoder = null;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2>&nbsp;&nbsp;&nbsp; function initialize() 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (GBrowserIsCompatible()) 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; map = new 
GMap2(document.getElementById("map_canvas"));<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
map.setCenter(new GLatLng(37.4419, -122.1419), 
13);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; geocoder = new 
GClientGeocoder();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; 
}</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2>&nbsp;&nbsp;&nbsp; function showAddress(address) 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (geocoder) 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
geocoder.getLatLng(<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
address,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
function(point) 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if 
(!point) 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
alert(address + " not 
found");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } 
else 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
map.setCenter(point, 
13);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
var marker = new 
GMarker(point);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
map.addOverlay(marker);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
marker.openInfoWindowHtml(address);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp; 
}<BR>&nbsp;&nbsp;&nbsp; &lt;/script&gt;<BR>&nbsp; &lt;/head&gt;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2>&nbsp; &lt;body onload="initialize()" 
onunload="GUnload()"&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;form action="#" 
onsubmit="showAddress(this.address.value); return 
false"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;p&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;input type="text" 
size="60" name="address" value="1600 Amphitheatre Pky, Mountain View, CA" 
/&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;input type="submit" 
value="Go!" /&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;/p&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;div id="map_canvas" 
style="width: 500px; height: 300px"&gt;&lt;/div&gt;<BR>&nbsp;&nbsp;&nbsp; 
&lt;/form&gt;<BR>&nbsp; &lt;/body&gt;<BR>&lt;/html&gt;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV><FONT size=2></FONT>
<DIV><BR>* I'm also wondering why you chose the static API instead of the 
dynamic one.<BR>* I haven't played with the static version and I'm curious about 
its<BR>* advantages.</DIV>
<DIV><BR>&nbsp;</DIV>
<DIV><FONT size=2>When&nbsp;&nbsp;i accept the user's browser i call the API for 
define the 'location' and after i browser a map for controll.</FONT></DIV><FONT 
size=2></FONT>
<DIV><BR><FONT size=2>Ciao,</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2>&nbsp;&nbsp;&nbsp; 
Dario</FONT></FONT></DIV></DIV></BODY></HTML>