Hi,

Attached is map.xml - a  "People and Places" category search:

Streetmap - Displays a map of a UK postcode or place.
Examples:
 map ng10 5ej 
 map nottingham station 


Graeme

Dr Graeme Lunt
Technical Architect
Nexor
Tel: +44 (0) 115 952 0500
Fax: +44 (0) 115 952 0519
DD : +44 (0) 115 952 0577

mailto:[EMAIL PROTECTED] 
http://www.nexor.com 
 
<search function="map">
  <name>Streetmap</name>
  <description>Displays a map of a UK postcode or place.<br/>
    <div class="helpboxDescLabels">Examples:</div>
    <table class="helpboxDescTable">
      <tr><td>map ng10 5ej</td></tr>
      <tr><td>map nottingham station</td></tr>
    </table>
  </description>
  <link>http://www.streetmap.co.uk/</link>
  <category>People and Places</category>
  <shortcut>map</shortcut>
  <contributor>Graeme Lunt</contributor>
  <email>[EMAIL PROTECTED]</email>
  <form name="mapf"
	action="http://www.streetmap.co.uk/newsearch.srf?"; target="_map" method="post">
    	<input id="Submit1" type="hidden" value="search" name="Submit1"/>
    	<input id="Radio" type="hidden" value="PostCode" name="type"/>
	<input type="hidden" value="newmap" name="mapp" ID="Hidden1"/> 
	<input type="hidden" value="newsearch" name="searchp" ID="Hidden2"/>
	<input id="Text1" type="hidden" size="26" name="name"/>
  </form>
  <script>
    function map(q)
    {

	if(q.match(/^\w+\d+\W+/)){

		document.mapf.Radio.value = "PostCode";

	} else {

		document.mapf.Radio.value = "PlaceName";

	}

	document.mapf.Text1.value = q;
	submitForm(mapf);

    }
  </script>
</search>

Reply via email to