iphone - Modify the URL of the request in UIWebView -
I have tried which is described in Although I was able to change the URL of the request, the original URL was still loaded.
What I am trying to do is to insert a validation string in the URL (i.e.) which is not already
The URL I am loading, It has its frames, therefore [[WebView request] URL)
inside webViewDidStartLoad: webview
is always the original URL, i.e. URL containing & lt; Frameset & gt;
contains tags that make it difficult to check that the modified request was actually processed.
Any suggestions are welcome!
I have found a HAMI solution to use Javascript:
< Code> [Webview stringByViewing JavaScript ScriptWriterString: [NSString stringWithFormat: @ "location.href = '% @'", newURL]];
In my case, there are frames of the site, so I set the frame [1]. Instead place.href.
Comments
Post a Comment