Hi,

can you please ask this question on the GeoServer users list? Make sure that 
you include the whole request url when asking the question, and also provide 
information on the backend you use (database, shapefile etc.).

Regards,
Andreas.

On Apr 21, 2010, at 19:30 , geojoe wrote:

> 
> Andreas,
> 
> I've tried serializing the filter using the today_1 and today_2 date formats
> with the request and I get the same "HTTP Error 400: Bad Request" error in
> both cases.
> 
> What am I doing wrong?
> 
> Thanks,
> Joe
> 
>   var today_1 = mm+"/"+dd+"/"+yy;
>   var today_2 = yy+"-"+mm+"-"+dd;
> 
>   dateFilter = new OpenLayers.Filter.Comparison({
>       type: OpenLayers.Filter.Comparison.GREATER_THAN_OR_EQUAL_TO,
>       property: "end_date",
>       value: today_1 });
> 
>   myFilter = new OpenLayers.Format.Filter().write(dateFilter);
> 
>   var myrequest =
> "http://xxxxxx.xxxx:8080/geoserver/wfs?&outputformat=json&request=GetFeature&version=1.1.0&typeName=Biofuels:"+thelayer+"&extractfields:true&filter="+myFilter;
> 
> 
> -- 
> View this message in context: 
> http://n2.nabble.com/Ajax-request-filter-tp4909804p4938380.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> _______________________________________________
> Users mailing list
> [email protected]
> http://openlayers.org/mailman/listinfo/users



-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.

_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to