[OpenLayers-Users] Ajax request filter
geojoe
jwolter at wisc.edu
Wed Apr 21 13:30:46 EDT 2010
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.
More information about the Users
mailing list