<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:'times new roman', 'new york', times, serif;font-size:14pt;color:#000000;"><div><p class="western" style="margin-bottom: 0cm">Hello List,</p>
<p class="western" style="margin-bottom: 0cm"><br>
</p>
<p class="western" style="margin-bottom: 0cm">I am trying to do
search function following example in this site
<a href="http://ian01.geog.psu.edu/geoserver/www/search/gazetteer.html">http://ian01.geog.psu.edu/geoserver/www/search/gazetteer.html</a>
</p>
<p class="western" style="margin-bottom: 0cm"><br>
</p>
<p class="western" style="margin-bottom: 0cm">I wrote almost same the
above example given, I change only in my data what I istalled in
Geoserver
</p>
<p class="western" style="margin-bottom: 0cm"><br>
</p>
<pre class="western"><a name="line1"></a><span> var protocol= OpenLayers.Protocol.WFS({
url: "<a target="_blank" href="http://localhost:8080/geoserver/wfs">http://localhost:8080/geoserver/wfs</a>",
featureType: "municipaliteis",
//featureNS: "</span><a href="http://geovista.psu.edu/">http://geovista.psu.edu</a>" I dont know how to fix this line
});
formPanel = new GeoExt.form.FormPanel({
title: "Place Name Search",
height: 150,
region: "north",
protocol: protocol,
items: [{
xtype: "textfield",
width: 200,
name: "name__like",
minLength: 4
},
                xtype: "textfield",
width: 200,
name: "population__ge"
                ],
listeners: {
actioncomplete: function(form, action) {
features = action.response.features;
store.loadData(features);
vm=map.getLayersByName("Results");
if(vm.length===0){
vecLayer = new OpenLayers.Layer.Vector("Results");
map.addLayer(vecLayer);
store.bind(vecLayer);
select.bind(vecLayer);
}
}
},
buttons: [{text: 'search',
handler: function(){
formPanel.search();
}
}],
keys: [{ key: [Ext.EventObject.ENTER],
handler: function() {
formPanel.search();
}
}]
});
I tried for all most one week to fix it, but it still not working... When I click to command button "search" it did not show any thing. If some one have experience about this work please write me a command.
Thank in advance
Quang </pre></div><div style="position:fixed"></div>
</div><br>
</body></html>