why simply not start request 2 after request 1, i.e inside the callback response from request 1?
Diego Guidi On Fri, Jul 19, 2013 at 1:36 AM, J.Alejandro Martinez Linares <isla...@infomed.sld.cu> wrote: > Hi people i need hel from you, i need to do some synchronized tasks by order > and using > > OpenLayers.Protocol.HTTP i can't do it because the request are not made by > order, please help how coud i fix this > i execute this: > //-------------------------------------------------------------------------------------------- > var grenseProtocol = new OpenLayers.Protocol.HTTP({ > format: new OpenLayers.Format.GML(), > async: false, > url: "http://" + host + "/geoserver/wfs", > params: { > service: "WFS", > request: "GetFeature", > version: "1.0.0", > typename: featureTypes, > filter: filterStr > } > }); > > //llamamos al WFS > grenseProtocol.read({ > readWithPOST: true, > > callback: function(resp) { > console.log('1'); > } > }); > console.log('2'); > //--------------------------------------------------- > and the result is this > 2 > 1 > int firebug and it would be like this: > 1 > 2 > > > > > thanks to all > > > > -- > > Este mensaje le ha llegado mediante el servicio de correo electronico que > ofrece Infomed para respaldar el cumplimiento de las misiones del Sistema > Nacional de Salud. La persona que envia este correo asume el compromiso de > usar el servicio a tales fines y cumplir con las regulaciones establecidas > > Infomed: http://www.sld.cu/ > > _______________________________________________ > Users mailing list > us...@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users _______________________________________________ Users mailing list us...@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-users