iphone - UIWebView: webViewDidStartLoad/webViewDidFinishLoad delegate methods not called when loading certain URLs -


i have basic web browser implemented using uiwebview. i've noticed pages, none of uiwebviewdelegate methods called.

an example page in happens is: http://www.youtube.com/user/google. here steps reproduce issue (make sure insert nslog calls in controller's uiwebviewdelegate methods):

  1. load above youtube url uiwebview [notice here, uiwebviewdelegate methods called when page loads]
  2. touch "uploads" category on page
  3. touch video in category [issue: notice new page loaded, none of uiwebview delegates called]

i know not issue of uiwebview's delegate not being set properly, since delegate methods invoked when loading other links (e.g. if try clicking on link takes outside of youtube, you'll notice delegate methods getting called).

my gut feeling might because page loaded using ajax, may not invoke delegate method. when checked iphone's safari, did not exhibit problem, must on side.

i've noticed three20's ttwebcontroller has exact same issue i'm having.

but problem arises issue without delegate methods called, i'm unable update ui enable/disable , forward browsing buttons when new requests loaded.

and idea why happening or how can work around update ui when new request made?

this isn't ios bug - page isn't reloading. uiwebview delegates triggered following new page requests, page doesn't that.

look very carefully @ happens in desktop safari when click video link on page describe. make sure pay attention address bar. address change, but critically page not reload.

this handled javascript, not reloading page. put, the page never reloads, there's no reason uiwebview delegates called.

if don't believe me, conclusively prove try repeating steps describe javascript disabled. you'll notice page behaves differently.


Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -