If i return before

return subcategorytexthtml; //This is global variable

request.send(null);

It doesnt work.

What i managed to do is call the function on load time then again when
i need to use it. Kind of redundant but it works




On Mar 6, 3:17 am, Rossko <[email protected]> wrote:
> > It should be returning :
> > return subcategorytexthtml; //This is global variable
>
> Perhaps you haven't really grasped the asynchronous bit yet.
> As first supplied, the 'return' statement will be executed AFTER the
> GXmlHttp request has been fired off, but BEFORE any data has come
> back.  Naturally it's empty at that time.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to