uiwebview

How do I "listen" for something in WebView, Android?

private class HelloWebViewClient extends WebViewClient { @Override public boolean shouldOverrideUrlLoading(WebView view, String url) { view.loadUrl(url); return true; } } /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceStat...

How can I enable zoom in on UIWebView which inside the UIScrollView?

Hi, I have a UIWebView which inside a UIScrollView (scrollview contain another component) I tried to enable multitouch both on Interface Builder or Programmatic on UIWebView but it still cannot zoom for html, do I need to handle both zoom in at the UIScrollView and UIWebView? Or anything I haven't to set? Thanks. ...

UIWebView Error in iPhone

Hi All, I am getting this error in webview while loading this url : http://www.thumbzine.com/rssfeed.php?vol=104 "Error Domain=WebKitErrorDomain Code=102 UserInfo=0xde6ce0 "Frame load interrupted"" [webView loadRequest:[NSURLRequest requestWithURL: [NSURL URLWithString:@"thumbzine.com/rssfeed.php?vol=104"]]]; What is th...

iPhone: Download PDF and store locally?

I am able to successfully view a PDF from a website. I want to be able to download that PDF to the device, then be able to access that file locally. So the user opens the app, the app checks the online PDFs date and compares it to the date of the PDF store locally, if it is newer, then the new PDF is downloaded, if its not newer then i...

How to detect and handle HTTP error codes in UIWebView?

I want to inform user when HTTP error 404 etc is received. How can I detect that? I've already tried to implement - (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error but it is not called when I receive 404 error. ...

UIWebView hide back button just on index page

Hi all. I've have a viewcontroller with multiple controls inside it, being one of them a UIWebView. When the application first loads, the UIWebView shows a remote site index.html place. ( Fixed url ). From there, the user should be able to navigate to wherever he wants inside the website ( no address bar ). My problem is that, i need...

How to remove grey shadow on the top UIWebView when overscroll?

Hi, I'm using UIWebView for show a simple HTML page. When I scroll the page (over the top or over the bottom) a shadow gray appears behind!! Can I remove or avoid this bad effect? Thx P.S. UIWebView, View container, are all background clear and opaque NO!! ...

Rotating UIWebView with transform, content partially off screen, how to get it to stick on screen?

I have a 320x416 portrait-shaped UIWebView filling a UIViewController's view. I also have a 90 degree rotate button that will transform the UIWebView through 90 degrees each time the button is touched. The code is basically: webView.transform = CGAffineTransformMakeRotation(touches%4 * M_PI/2.0); After rotation through 90 degrees, t...

Oulook OWA 2007 iphone logon | owaauth.dll | UIWebView

Hi, I am trying since for a longer time to post parameters to Outlook Web Access 2007 (owaauth.dll) for signing on. But it refuses. This is the way I am doing (which is already working within a delphi program): NSString *strUsername = [[NSUserDefaults standardUserDefaults] stringForKey:@"mailUserName"]; NSString *strPassword = [[NSUser...

iPhone uiWebView - 'didImageWasClicked' like event?

Newbie Question. I have a UIWebView that I push HTML code into. In the HTML code is an image. Is there a way to get informed that image #3 or image with name 'bob' was touched ? Some event like 'didImageWasClickedAndHereIsTheIDOfTheClickedThingy' perhaps? ...

When and where are controller's properties supposed to be set ?

Hey guys, This time, I was wondering when I was supposed to set my properties ... I got a nav bar which I use to push a new controller (controlling a Web View) : NewsViewController *webViewController = [[NewsViewController alloc] init]; // I create my controller webViewController.urlText = @"http://www.google.fr"; // I set the prope...

iPhone - Gestures on UIPickerView and UIWebView

I'm making an iPhone app in which the user can do gestures (left and right swipes) to flick through tabs. My problem is that some of the pages have views such as the pickerview, webview, textfields and buttons. The swipes don't work on these. Is there any way to have global gestures? For reference, my gesture code example: //Swipe betw...

iPhone: Performances Differences Between NSURLRequestCachePolicy Settings

When using NSURLRequest on the iPhone, what are the real world performance differences between the various NSURLRequestCachePolicy settings? I am specifically interested in the cache policy's effect on the the user's perception of the speed at which UIWebView pages display. I have been using the default NSURLRequestCachePolicy but I th...

How to zoom web view programmatically?

Hi Is any idea, how to set zoom level of webview by programming ? Thanks ...

How do I know if text contains URL links (UIWebView)

I have some text which might or might not contain web URLs, phone numbers, email links etc. which UIWebView automatically detects as hotspots. Question: I want to show this text in UIWebView ONLY when there are one or more hotspots, but as plain text if it doesn't. So how can I detect this in code? Additional Info: JavaScript code belo...

iPhone - UIWebView Gestures

I have viewcontrollers set up to track gestures and commit an action, in this case, change the tab. The code for the viewcontrollers is as follows: #define HORIZ_SWIPE_DRAG_MIN 100 CGPoint mystartTouchPosition; BOOL isProcessingListMove; - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { UITouch *touch = [touches any...

How to Get the Title of a HTML Page Displayed in UIWebView?

I need to extract the contents of the title tag from an HTML page displayed in a UIWebView. What is the most robust means of doing so? I know I can do: - (void)webViewDidFinishLoad:(UIWebView *)webView{ NSString *theTitle=[webView stringByEvaluatingJavaScriptFromString:@"document.title"]; } However, that only works if javascript ...

iPhone - Switch Tab from UIWebView

I have a webview and I want to manually switch to another tab during a specific event. The event is arbitray, but I can't figure out hwo to switch teh tab. On my other views, I have the following code: self.tabBarController.selectedViewController = [self.tabBarController.viewControllers objectAtIndex:2]; However, this does not work in...

cllocation to UIWebView - iPhone

Hi I am wondering if there is away to send the lat and long of a persons location to a URL? It would also need to have their UDID number to match with the database. Here is what I have so far if anyone can help that would be great... -(void)viewDidLoad { NSString *query = [[NSString alloc] initWithFormat: ...

URL not loading in UIWebView

I am trying to get this Outlook Web Access demo account to load in an iPhone's UIWebView, and it does absolutely nothing... I don't even get an error code with the UIWebViewDelegate didfailLoadwithError method... here's the details: URL: https://webmail.123Together.com/exchange/ Username: [email protected] Password: test I would like ...