i don't want to return from the request until a result is received
from the remote server.
how can i stop the function from returning right away - i'll call
sendResponse from the
xml callback function.
thanks.
Adam
> --
> You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
> To post to this group, send email to chromium-...@chromium.org.
> To unsubscribe from this group, send email to chromium-extens...@chromium.org.
> For more options, visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/?hl=en.
>
>
I think the poster was referring to making an XHR object within a
background page operate asynchronously, in which case, the third param
of the "open" method (the async flag) can just be set to "false".
Oops, I meant making an XHR object operate "synchronously". That's
what the setting I gave will do.
Ah, I misunderstood the question. Thanks!
Adam
on a related architecture note - the fact that contents
scripts have to call background scripts for XHR, would
necessitate most to implement as synchronous.
or else a fancy double messaging system.
You can see an example of how to do this in one of my extensions:
https://chrome.google.com/extensions/detail/ahinhccldaefdhieflgmecppompikcnn
Adam