> Erik Beeson wrote: > The value from $.get CAN NOT be returned from isTracked because isTracked will > have returned before the $.get callback executes. Shame :/ But thank you for that answer. I was fighting because I thought that it is possible. Waste of time :/
So I have no choice and put all code to callback (I suppose that I can do "my thing" without jquery but too much code for that...) Thank very much Erik, your answers are very clear and helpful (even if I was confused before, but javascript, to be honest, is something new for me :)) > Michael Geary wrote: > The only way to do that is to use a synchronous $.ajax call: > http://docs.jquery.com/Ajax/jQuery.ajax#options > > But beware! This has the extremely negative effect of completely locking up > the browser window - and all other browser windows in > many browsers - until your server returns the ajax data. Good to know that there is an option :) but its not good option for me (and almost for everyone I guess). But maybe one day I will need that. Thank you too Michael for answers! Regards Michael