Hello Jérome,
Thanks for this answer. Its very well explained but i must code again and again :-) Pascal BENOIST [EMAIL PROTECTED] Mob: +33 (0)6 12 61 68 02 Fixe: +33 (0)4 50 75 17 74 _____ De : [email protected] [mailto:[EMAIL PROTECTED] De la part de Jérome de la Goutte Envoyé : lundi 30 octobre 2006 11:07 À : [email protected] Objet : Rép. : [svg-developers] pb with asynchronous xmlHttpRequest Hi Pascal, I'm afriad you have to code a FIFO (first in, first out) and a FIFO manager : Each time you have to load something, you add the URL of the serverside file and the destination node where you want your new objets to be put in, in the FIFO. Then you call the FIFO manager. The FIFO manager should know at any time if there is a httrequest pending. If not : when it is called, he should launch a httprequest whith the first item to load, and assigning the callback which should add the loaded data to the destination node, remove the loaded URL from the FIFO and lauch the FIFO manager again. If the FIFO manager is called and the FIFO is empty, noting is done. If the FIFO manager is called while there is still a pending HttpRequest, nothing is done That way, you can ensure that all data are loaded one after the other and you can add new data to load at any time. You can have an example of this on the site http://www.eure. <http://www.eure.pref.gouv.fr/sig/ouvre.asp> pref.gouv.fr/sig/ouvre.asp on the comboboxes and the charging of the maps. Have fun Jérôme --------------------------------------- Jérôme de la Goutte Chef de projet ISAGRI Ingéniérie E-mail : jdelagoutte@ <mailto:jdelagoutte%40isagri.fr> isagri.fr Site web : www.terre-net.fr & www.isagri.fr tel: 03 44 06 84 71 fax: 03 44 06 55 61 >>> pascal.benoist11@ <mailto:pascal.benoist11%40wanadoo.fr> wanadoo.fr 30/10/2006 10:33 >>> Hello community, I would like to know if there is a good solution to the following problem : I use xmlHttpRequest and, cause it is asynchronous, some callback are not done in the same order than the request. I would like to run an action only when I am sure the preceeding action is accomplished. In the same idea, is there a way to do like Flash when it is first loaded : Displaying an image like "Loading*" while all the loading is fully processed* Thanks >>>>----------------------------------------------------------<<<< Ce message a été traité contre les virus par quatre outils différents (Kaspersky, McAfee, Symantec et Huntsman). This message has been scanned for viruses (by Kaspersky, McAfee, Symantec and Huntsman). >>>>----------------------------------------------------------<<<< ---------------------------------------------------------------------------- ----------- Orange vous informe que cet e-mail a été contrôlé par l'anti-virus mail. Aucun virus connu à ce jour par nos services n'a été détecté. [Non-text portions of this message have been removed] ----- To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" ---- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/svg-developers/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

