[OpenLayers-Users] 2 loadurl request in parallel

Vidal, Antoni antoni.vidal at icc.cat
Mon Feb 22 02:55:16 EST 2010


I need to parse a huge json response (4 MB), trying this, browsers break down. My intention is to make "tiling" of the original request in 2 or more request getting smaller response.

I think this is more efficient and faster.

What do you think?

Antoni Vidal
Unitat d'Aplicacions SIG-WEB
Ext. 3228

-----Missatge original-----
De: Jorge Gustavo Rocha [mailto:jgr at di.uminho.pt] 
Enviat: viernes, 19 de febrero de 2010 15:10
Per a: Vidal, Antoni
A/c: users at openlayers.org
Tema: Re: [OpenLayers-Users] 2 loadurl request in parallel

Hi Antoni,

Yes, you can make any number of AJAX requests. They are, by definition, asynchronous. If you do several different requests, and you need to collect all the results, for example, you need to add some logic, to know how many requests have already finished, and do something at the end of the last callback.

Please explain you question a little bit further, to find allow a better answer. I really don't know what do you want to do.

regards,

jorge

Sex, 2010-02-19 às 14:58 +0100, Vidal, Antoni escreveu:
> Hello list,
> 
>  
> 
> I need to make 2 ajax request at the same time. Is this possible?
> 
>  
> 
> Antoni Vidal
> 
> Unitat d'Aplicacions SIG-WEB
> Institut Cartogràfic de Catalunya
> Parc de Montjuïc, E-08038 Barcelona
> Tel. (+34) 93 567 15 00 (ext. 3228)
> www.icc.cat
> 
>  
> 
>  
> 
>  
> 
> 
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users


--
jorge gustavo rocha
departamento de informática
universidade do minho
4710-057 braga
portugal
N 41º33'44,5" W 8º23'40,5"
tel +351 253604470 fax +351 253604471 cel +351 927210173


More information about the Users mailing list