Question: I have a JavaScript class that has a method:

```
function someClass() {
    this.someMethod = someClass_someMethod;
}

function someClass_someMethod() {
    // make an AJAX request
}

```

The problem is that `someClass_someMethod()` needs to return the value of the AJAX request.

I'm using jQuery's `$.getJSON()` method to fetch the data. The data needs to be returned but it seems the only way to get the data is through a callback.

How can this be done?

Answer: 
Make your special view its own UIWindow. Set the UIWindow's windowLevel to UIWindowLevelStatusBar. If it still isn't on top, you can use bringSubviewToFront: on the UIWindow (remember, a UIWindow is a UIView) to bring it to the top of that level.
Answer here:

[Add UIView Above All Other Views, Including StatusBar](https://stackoverflow.com/questions/2666792/add-uiview-above-all-other-views-including-statusbar)

Have to create a UIWindow and set it's windowLevel property to statusBarLevel.