<div>HI,</div>
<div> </div>
<div>I think you need to put in an html drop down list, you need to trigger a function at an event occurent on this drop down list. Get the text and name of layer, from which to search the feature from. The layer name should be in drop down list. You need to programticaly generate a wfs with a cql filter appended in the url . The response will contain the feature, you can get the bounds of the feature, and simple use openlayers to zoom and pan to that extent. I think you need to start looking for CQL filters, they will perform the searching for you.</div>

<div> </div>
<div>regards,</div>
<div>Imran<br></div>
<div class="gmail_quote">On Sun, Jul 18, 2010 at 2:43 PM, Jehanzeb Orakzai <span dir="ltr">&lt;<a href="mailto:jehanzeb_orakzai@yahoo.com">jehanzeb_orakzai@yahoo.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<table cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr>
<td valign="top">
<p class="MsoNormal" style="MARGIN: 0in 0in 10pt"><font face="Calibri" size="3">Hi,</font> 
<p class="MsoNormal" style="MARGIN: 0in 0in 10pt"><font face="Calibri" size="3">I am using OpenLayers for web mapping, GeoServer to serve maps as WMS and WFS &amp; PostgreSql/PostGIS for database having spatial and non-spatial data.</font> 
<p class="MsoNormal" style="MARGIN: 0in 0in 10pt"><font face="Calibri" size="3">I have cities &amp; school data as point in their respective tables in the database which are publish through GeoServer. School table is linked with cities using cityID.</font> 
<p class="MsoNormal" style="MARGIN: 0in 0in 10pt"><font face="Calibri" size="3">I want to develop a form that contains cities as text box and school as dropdown loaded from the database, so that a user can perform search on it and the map is zoomed to that particular area with non-spatial information display in a separate grid.</font> 
<p class="MsoNormal" style="MARGIN: 0in 0in 10pt"><font face="Calibri" size="3">I don’t know how to load the data in the combo box / dropdown from the DB using the above software stack and perform some searching. How to zoom to a particular location based on the criteria and display non-spatial data in grid.</font> 
<p class="MsoNormal" style="MARGIN: 0in 0in 10pt"><font face="Calibri" size="3">I need some guidelines or examples for the problem stated above.</font> 
<p class="MsoNormal" style="MARGIN: 0in 0in 10pt"><font face="Calibri" size="3">Can somebody help me in achieving this?</font> 
<p class="MsoNormal" style="MARGIN: 0in 0in 10pt"><font face="Calibri" size="3">Any help is appreciated.</font><br><br>
<div><font face="verdana, helvetica, sans-serif" color="#00007f" size="2"><strong>Thank you,</strong></font></div>
<div><font face="verdana, helvetica, sans-serif" color="#00007f" size="2"><strong>--</strong></font></div>
<div><font face="verdana, helvetica, sans-serif" color="#00007f" size="2"><strong>Jehanzeb</strong></font></div>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p></p></p></p></p></p></p></p></p></td></tr></tbody></table><font color="#888888"><br></font><br>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>
<a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br><br></blockquote></div><br><br clear="all"><br>-- <br>I.R<br>