Force JQuery Mobile page inside UIWebView to call webViewDidStartLoad

1.3k views Asked by At

In my iPhone app I've got the following hierarchy:

UITabBarController ->
 UINavigationController ->
  UIViewController<UIWebViewDelegate> ->
   UIWebView
    (jQuery Mobile-page)

In the UIViewControllers navigationItem, I've added a button whose action selector is the UIWebViews goBack-function. When the button is pressed, everything goes according to plan - the UIWebView navigates backwards (including the fancy jQuery Mobile-transitions).

The problem is that, since jQuery Mobile uses some kind of "internal linking" when navigating to different pages (adding #the/newPage/url.html to the URL), the UIWebViewDelegate function webViewDidStartLoad is never being called when pages within the same jQuery Mobile-driven site are loaded.

Anyone with suggestions on how to make the jQuery Mobile-page fire off the delegate function? Possibly with maintained transitions. If this isn't possible, do anyone have suggestions about any other "web app framework" that is capable of this (delegate calls + transitions)?

Thanks!

UPDATE

Maybe my question is almost the same as this one here on stackoverflow, but I at least think that mine is a bit more specific. If you disagree, leave a comment :)

0

There are 0 answers