Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8798633
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T00:08:23+00:00 2026-06-14T00:08:23+00:00

Im taking over a project, and in this app the main goal here is

  • 0

Im taking over a project, and in this app the main goal here is to have a webview, and check every single page loads URL against a string check to determine which background functions need to take place.

Problem is, webViewDidFinishLoad only seems to fire once, when the webview itself is created. Anytime an internal link is clicked, it never fires again.

In onViewLoad i do have the delegate set to self, and by all means things are relatively in place, but again this is not being fired on each page load.

THIS SAID.

shouldStartLoadWithRequest DOES. BUT, because its STARTING the request, and the URL is not quite loaded in full by the time the event fires, it gets the current URL of the requesting page instead of the target URL when I use

NSString *curURL = [webView stringByEvaluatingJavaScriptFromString:@"window.location.href"];

The other functions either dont return anything or the exact same thing as the function above

//NSString *curURL = self.webView.request.URL.absoluteString;
//NSString *curURL = webView.request.mainDocumentURL.absoluteString;

So, im at a loss here, doing this on Android was relatively simple enough, but the limited amount of methods for the webView is making me depressed..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T00:08:24+00:00Added an answer on June 14, 2026 at 12:08 am

    The problem was simply with the website using jQueryUI Mobile 1.0.4. This not only loads urls by appending a # with the next url in the mix,

    http://url.com/somepage.php?item=1#/somepage.php?item=2

    Also, doing this, somehow tricks the webView into thinking the page hanst changed despite changing the URL directly. So the webViewDidFinishLoad never fires after subsequent page loads with the library.

    Sad. The library looked good too.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm taking over a project and wanted to understand if this is common practice
I have a DTSX file in a project I'm taking over. I have Visual
I'm taking over a project so I'm still learning this. The project uses Lucence.NET.
I have recently inherited a large web project. Before taking this on, I had
I have a friend who's taking over a Visual C++ project from me and
So right now I have come into a project that I'm taking over the
I am taking over a project left by previous colleague. The project is mavenized
My android app is taking more and more memory over time. I took a
I have taken over a medium sized project that was written originally using RoR.
I have a project that is coming around the bend this summer that is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.