Block thread
-
Has anyone come up with a way to temporary halt execution of current thread like the build in "alert" and "prompt" functions. We know the ugliness of those built-in functions, I want to create my own, but I have to implement callback, nature of asynchronous. Its natural to just do: var msg = myprompt("title","message",default);
-
Has anyone come up with a way to temporary halt execution of current thread like the build in "alert" and "prompt" functions. We know the ugliness of those built-in functions, I want to create my own, but I have to implement callback, nature of asynchronous. Its natural to just do: var msg = myprompt("title","message",default);
-
If you are doing an async call are you using jQuery.ajax()? If so, you can set async to false.
There are only 10 types of people in the world, those who understand binary and those who don't.
-
Thanks for the reply. Yes, asyn is the only way I know how. I'm trying to do it with straight JavaScript, but perhaps I should expand to include jQuery library. Or may be I should look under the hood how jQuery does it. Good direction pointing.