I need to verify a users login details using ajax.
Then, if the login details are correct, it needs to add a tab to the tabbar.
I am having problems and need to “stop” the javascript from loading until the feedback is returned with ajax.
How can I do this?