Hi all.

here's my sample code:
------------------------
var container;    // global variable;

GM_xmlhttpRequest({ method: 'GET', url: 'http://wikipedia.org',
onload: function (source) { container = source.responseText; }});

alert(container);
----------------------

As you probably know alert shows empty dialog, not code of wikipedia
page. I have long script which will use several GM_xmlhttpRequests and
for some reasons I cannot include my code within callback 'onload'
function, it has to be passed over to the 'parent' code. How can I
postpone greasemonkey to execute next line of code (in example: alert
command) until callback function will finish? Is it possible at all?

Cheers,



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"greasemonkey-users" 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/greasemonkey-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to