Synchronous loading is proposed for jQuery 1.1. But I'm sure callbacks would be able to do what you need...
Couldn't you just do: createSeed(restOfScript); function restOfScript() { ... } Then the rest of the script would run after the ajax request has returned. Chris On 06/12/06, kazaar <[EMAIL PROTECTED]> wrote:
Thank you for quick answers. However, problem still exists. Latter alert-function would still fail, because variables wouldn't be set yet at that moment (I will need those variables later in another call to server). Problem falls back to asyncronous loading. Isn't there an easy way to use syncronous loading, without touching jquery.js -file itself? var seed_id; var seed; [...] createSeed(function() { alert(seed_id+"|"+seed); }); alert(seed_id+"|"+seed); -- View this message in context: http://www.nabble.com/Setting-a-global-variable-tf2764461.html#a7713125 Sent from the JQuery mailing list archive at Nabble.com. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
_______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/