[OpenLayers-Users] Re: How to apply a Search Function

Phil Scadden p.scadden at gns.cri.nz
Sun Feb 12 15:31:58 EST 2012

I'm a little lost by your code.

the wfsprotocol.read should be called in response to the input submit. 
You need to construct the filter so it is matching the property to the 
value of searchText not to the literal "searchText".

The best way to sort out what is going on in your code is use firebug. 
You can use the Net tab to see the actual post that the filter read 
creates. You can then look at the request to see if it is what you 
expect, copy and play in the browser till it selects what is correct, 
then work back to ensure your code generates it. You gain a lot of 
insight that way.

Notice: This email and any attachments are confidential. If received in error please destroy and immediately notify us. Do not copy or disclose the contents.

More information about the Users mailing list