Great, thanks.
How do you know this - is it part of the ECMAScript specification or is
there some other reference you can point me too?

--rob

On 6/12/07, Mike Alsup <[EMAIL PROTECTED]> wrote:


It's guaranteed as long as you don't force a synchronous call using
the async option.

Mike


On 6/12/07, Rob Desbois <[EMAIL PROTECTED]> wrote:
> I have a function which generates an AJAX request to retrieve
information.
> The display of this information requires modification of the interface -
the
> structure of the function is roughly:
>
>
> > function getInfo() {
> >    do AJAX request, success callback is onAjaxResponse
> >    setup interface to display data
> > }
> >
> > function onAjaxResponse() {
> >    add data to the interface
> >    show interface
> > }
> >
>
> Is it guaranteed that onAjaxResponse() will not execute until getInfo()
has
> returned?
> The interface *must* be setup before it is shown, so if this guarantee
is
> not there I must set up the interface in the response callback.
>
> A test in Firefox shows that this works but I'm not sure of what to
search
> for to find out if it is guaranteed.
>
> Thanks
> --rob
>
> --
> Rob Desbois
> Eml: [EMAIL PROTECTED]




--
Rob Desbois
Eml: [EMAIL PROTECTED]
Tel: 01452 760631
Mob: 07946 705987
"There's a whale there's a whale there's a whale fish" he cried, and the
whale was in full view.
...Then ooh welcome. Ahhh. Ooh mug welcome.

Reply via email to