[OpenLayers-Users] OpenLayers.Request.issue and Internet Explorer

Ultrabyte ultrabyte at gmail.com
Tue Sep 25 15:02:57 PDT 2012


Hello, everybody.

I have the following code in OpenLayers 2.12

	isSessionStarted: function(){
		var isStarted = false;
		var params = {
			parametro: 'checkSession'
		};
		OpenLayers.Request.issue({
			url: "SessionServlet",
			method: 'GET',
			async: false,
			params: params,
			success: function(response){
				var r = response.responseText.replace(/^\s*|\s*$/g,"");
				if (r == "true"){
					isStarted = true;
				}
			},
			failure: function(){
				
			}
		});
		return isStarted;
	},

In Firefox, if all in my servlet is OK, i get a "true" value. In
Internet Explorer, although i set the issue as "async: false", my
function returns false.

I wonder what is wrong in my code.

Thanks for your help.

Giovanni Romero Pérez
Instituto Geográfico Agustín Codazzi
Bogotá, Colombia


More information about the Users mailing list