Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #22769
| Message-ID | <1680224.8VMzM0OXlI@PointedEars.de> (permalink) |
|---|---|
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
| Organization | PointedEars Software (PES) |
| Date | 2014-01-24 02:05 +0100 |
| Subject | Re: Wait between different Calls (procedures) |
| Newsgroups | comp.lang.javascript |
| References | <d583e3d7-af49-42a3-a979-a48d294537d0@googlegroups.com> <52e142bb$0$9502$9b4e6d93@newsspool1.arcor-online.net> |
Christoph Michael Becker wrote: > frank.catry@gmail.com wrote: >> i have to populate 3 <select></selects> dom's regarding the content >> of the database. Wehn the user wish to update a record. In my case >> Class, Make and model of a car. However when i try to execute the 3 >> getContent calls on the bottom of the code it doesn't work. One by >> one is oké. How can i put a WAIT till finished between the getContent >> calls ? > > Short answer: in a browser environment you can't, cf. "How do I make a > 10 second delay?"[1]. Does the FAQ entry really say that? If yes, it is incomplete, at best. Any waiting can be implemented by moving all parts of the program that need to be waited for into the function body of a function called by window.setTimeout(). In this case, however, the next getContent() call simply needs to be placed into the success event listener assigned by calling the previous one. -- PointedEars Twitter: @PointedEars2 Please do not Cc: me. / Bitte keine Kopien per E-Mail.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Wait between different Calls (procedures) frank.catry@gmail.com - 2014-01-23 00:20 -0800
Re: Wait between different Calls (procedures) "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2014-01-23 11:06 +0100
Re: Wait between different Calls (procedures) Christoph Michael Becker <cmbecker69@arcor.de> - 2014-01-23 17:26 +0100
Re: Wait between different Calls (procedures) Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-01-24 02:05 +0100
Re: Wait between different Calls (procedures) Christoph Michael Becker <cmbecker69@arcor.de> - 2014-01-24 02:44 +0100
Re: Wait between different Calls (procedures) Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-01-25 12:01 +0100
Re: Wait between different Calls (procedures) Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-01-24 02:54 +0100
Re: Wait between different Calls (procedures) Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-01-25 18:03 +0100
csiph-web