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
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to