<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:10pt"><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;">GeoMOOSE is using AJAX.<br><br>It goes a little something like this...<br><br>The service definition is used to tell GeoMOOSE two things. First, what inputs need to be "taken in" be it spatial (via the shape attribute) or something considered more "tabular" like a type="user" input. The second thing it tells GeoMOOSE is how to format a URL and send it to a CGI program (mapserver, a PHP script, whatever). <br><br>So GeoMOOSE takes in the input, formats the URL (or XML request...), and send it to a service (CGI program). The service returns some information in one of many formats:<br>1) Text/XML - GeoMOOSE can take in a *lot* of different commands from an XML return but they aren't formatted the prettiest.<br>2)
Text/Plain - GeoMOOSE will format this into HTML by converting the '\n's into '<br/>'.<br>3) Text/CSV - GeoMOOSE will turn this into an HTML table.<br>4) Text/HTML - This content is placed inside of the div by a little bit of javascript code, "div.innerHTML = ajaxRequest.responseText;". That's not the actual code, but there is a line in there that is entirely similar and performs the same function.<br><br>This process of abstractly defining how to talk with a Service and then getting a Return and reacting is at the core of the GeoMOOSE design. GeoMOOSE strives to comply to a "Service Oriented Architecture" where small unrelated programs can work in harmony with each other but WORK nonetheless. GeoMOOSE also strives to respect REST, a web design philosophy that does not require that the "state" of the application be known by the server. So things look a little bit different in the hope that it actually can be MORE of a swiss
army knife to more people.<br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Jay Kapalczynski <jkapalczynski@ci.maple-grove.mn.us><br>To: geomoose-users@lists.sourceforge.net; geomoose-developers@lists.sourceforge.net<br>Sent: Wednesday, March 19, 2008 12:06:36 PM<br>Subject: [Geomoose-users] XY indentifyer<br><br>
<style>
<!--
_filtered {font-family:"Cambria Math";panose-1:2 4 5 3 5 4 6 3 2 4;}
_filtered {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;margin-bottom:.0001pt;font-size:11.0pt;font-family:"Calibri", "sans-serif";}
a:link, span.MsoHyperlink
        {color:blue;text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;text-decoration:underline;}
span.EmailStyle17
        {font-family:"Calibri", "sans-serif";color:windowtext;}
.MsoChpDefault
        {}
_filtered {margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {}
-->
</style>
<div class="Section1">
<p class="MsoNormal">Sorry for the loaded questions. Trying to really learn
this stuff….If anyone can be of assistance I would be appreciative….</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Question1:</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">I am looking at the Identify Tool Code. (see Below)</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">I see the call to the identify.map</p>
<p class="MsoNormal">Once in the identify.map there is a call to you specify
layer "TEMPLATE 'parcels/identify_parcels.html'"</p>
<p class="MsoNormal">Once there you tell it what fields to show values on…</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Where in that process does the code tell it to place all the
values from the TEMPLATE above into the Info Tab in GeoMoose?</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Is this whats going on???</p>
<p class="MsoNormal">Is the code below passing all those input types to
MapServer? Is this being done in the URL? Then MapServer reads them
and passes them back? To where…how does that get passed back to the
Info Tab?</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><service
title="Identify" default="true"
cursor="url(cursors/identify2.cur), auto"
icon="shared/images/toolbar/identify.jpg"
highlight="shared/images/toolbar/identify_selected.jpg"
locked="true" shape="point"></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> <url>/cgi-bin/mapserv.exe</url></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> <input
type="hidden" name="map"
value="/ms4w/apps/GeoMOOSE/Maple_Grove_GeoMoose/identify.map"/></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> <input
type="point" name="mapxy" delim=" "/></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> <input
type="extent" name="imgext" delim=" "/></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> <input
type="layertitles" name="layers" delim=" "/></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> <input
type="imagesize" name="imgsize" delim=" "/></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"> <input
type="hidden" name="mode" value="nquery"/></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"></service> </span> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Question2:</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">I see in the Identify Code above that it is getting the
mapXY….how would I go about stripping all the other stuff above and just create
the button "onClick" write the XY to a variable and pop up a
messagebox giving the user the XY?</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Any thoughts would be appreciated…trying to learn how
to code in the Web Environment……Something I can do in ArcGIS easily
but confused with all the calls and requests back and forth….</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">THanks Again</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
</div>
</div><br></div></div><br>
<hr size=1>Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. <a href="http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ "> Try it now.</a></body></html>