<!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> </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> </DIV>
<DIV><FONT size=2>I solve it with: HTTPSocket httpGet:
url</FONT></DIV>
<DIV><FONT size=2></FONT> </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> </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> </DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2><!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>"><BR><html
xmlns="<A href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</A>"
xmlns:v="urn:schemas-microsoft-com:vml"><BR>
<head><BR> <meta http-equiv="content-type"
content="text/html; charset=UTF-8"/><BR>
<title>Google Maps API Example: Simple
Geocoding</title><BR> <script src="<A
href="http://maps.google.com/maps?file=api&amp;v=2.x&amp;key=ABQIAAAAzr2EBOXUKnm_jVnk0OJI7xSosDVG8KKPE1-m51RBrvYughuyMxQ-i1QfUnH94QxWIa6N4U6MouMmBA">http://maps.google.com/maps?file=api&amp;v=2.x&amp;key=ABQIAAAAzr2EBOXUKnm_jVnk0OJI7xSosDVG8KKPE1-m51RBrvYughuyMxQ-i1QfUnH94QxWIa6N4U6MouMmBA</A>"
type="text/javascript"></script><BR> <script
type="text/javascript"></FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2> var map = null;<BR> var
geocoder = null;</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2> function initialize()
{<BR> if (GBrowserIsCompatible())
{<BR> map = new
GMap2(document.getElementById("map_canvas"));<BR>
map.setCenter(new GLatLng(37.4419, -122.1419),
13);<BR> geocoder = new
GClientGeocoder();<BR> }<BR>
}</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2> function showAddress(address)
{<BR> if (geocoder)
{<BR>
geocoder.getLatLng(<BR>
address,<BR>
function(point)
{<BR> if
(!point)
{<BR>
alert(address + " not
found");<BR> }
else
{<BR>
map.setCenter(point,
13);<BR>
var marker = new
GMarker(point);<BR>
map.addOverlay(marker);<BR>
marker.openInfoWindowHtml(address);<BR>
}<BR>
}<BR>
);<BR> }<BR>
}<BR> </script><BR> </head></FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2> <body onload="initialize()"
onunload="GUnload()"><BR> <form action="#"
onsubmit="showAddress(this.address.value); return
false"><BR>
<p><BR> <input type="text"
size="60" name="address" value="1600 Amphitheatre Pky, Mountain View, CA"
/><BR> <input type="submit"
value="Go!" /><BR>
</p><BR> <div id="map_canvas"
style="width: 500px; height: 300px"></div><BR>
</form><BR> </body><BR></html></FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2></FONT> </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> </DIV>
<DIV><FONT size=2>When 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> </DIV>
<DIV><FONT size=2>
Dario</FONT></FONT></DIV></DIV></BODY></HTML>