Ok I was able to do this a different way and get it to work by using a
OpenLayers.Request.GET and changing the async:false as stated in the example
here - http://docs.openlayers.org/library/request.html
This allows me to use the request object throughout my program and filter
through the attributes. Here is my code that works now -
var request = OpenLayers.Request.GET({
url:
"http://localhost/RedWFS/request.aspx?REQUEST=getFeature&SERVICE=WFS&TYPENAME=Neighbourhoods&version=1.1.0",
async: false
});
// do something with the response
alert(request.responseText);
--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/Question-using-OpenLayers-loadURL-by-setting-response-to-a-variable-tp5636485p5636619.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users