uiwebview

Can I access local images from an iframe inside of a uiwebview?

Basically Im attempting to take a php / jquery / css / html web app that is hosted remotely, and embed it in an iframe inside of a uiwebview in objective c using the big5 framework. I have my iframe set up and the web app is coming in correctly. My issue now is that I need to improve loading and performance. The easiest way to do this I ...

how to handle iframes/frames dom in the iphone uiwebview

in (void) webViewDidFinishLoad: (UIWebView*)webView I inject some javascript to handle the iframes. e.g. stringByEvaluatingJavaScriptFromString: @"try { var document = window.document.getElementsByTagName('iframe')[0].contentWindow.document.getElementsByTagName('frame'); } catch (e) { alert (e.message); }" It t...

Turn a page (a UIWebView) with an animation

Hi, I have a webview, which shows the pages of a ebook. I want to switch from one page to the next page with a page curl animation. By now, I know how to switch the page and how to apply a page curl animation on the webview. But how do I apply the curl animation in a way that it looks like flipping from one page to another? ...

Stop Images from loading in UIWebView

I have a website that I wish to load in a UIWebView, but it is full of images and takes ages to load. The images are useless, and only serve to reduce the usability on the iPhone. I dont own the website so I cannot change the site's actual code. The webpage is heavily linked in to the web with ASP.NET and AJAX (needs external files), so...

URL filtering for UIWebView on the iPhone

Can someone please shed some light on how I would get this to work: http://www.icab.de/blog/2009/08/18/url-filtering-with-uiwebview-on-the-iphone/ I tried making the "FilteredWebCache.h" and "FilteredWebCache.m" files in my project, but it said that "FilterManager.h" did not exist. What am I meant to do with those files? This I put in ...

How to recognize touch events and control a script object inside UIWebView?

Situation: I have an UIView with an UIWebView in it. When the viewDidLoad the Javascript Object inside the UIWebView is called (Microsoft Seadragon AJAX JS). For your Understanding: Seadragon loads a specified megapixel image(JPEG) and in a Desktop Browser like Firefox i can Zoom into the image and I can drag the crop for example from t...

UIWebView leaves behind link highlight when returning NO from "shouldStartLoadWithRequest"

If I return NO in the following method... - (BOOL)webView:(UIWebView*)webView shouldStartLoadWithRequest:(NSURLRequest*)request navigationType:(UIWebViewNavigationType)navigationType ...the grey link highlight around the link that was pressed gets left behind. Is there someway to dismiss the highlight? FYI, I return NO on certain link...

iPhone - Using javascript to increase font of web view

i've a webview in my app. It has + and - buttons to increase and decrease the font. When I start the view, the text occupies whole 320 pixels width. I'm following the way mentioned in http://stackoverflow.com/questions/589177/how-to-increase-font-size-in-uiwebview I'm seeing the increase and decrease of font. But once the font size incre...

webViewDidFinishLoad exception

Hi, I have a screen with a webView in my navigation controller stack and when I navigate from this view back to a previous before the page completely loaded I get a EXCEPTION_BAD_ACCESS. Seems, that the view with a webView being released before it comes to webViewDidFinishLoad function. My question is how to overcome this problem? I don...

Load string with Html tags

I am loading a string into UIwebview. The string is a simple text coming from Database. What I want is that webview should show the text in Bold. How to add HTML <b> tag or any tag to this simple text coming from Database ? ...

How load WebView with another URL when navigated through tab bar viewController

Hello, I have created window based application, root controller as Tab bar controller. WebView is being loaded in Tab bar interfaced ViewController's View.WebView is created using IB.WebView object declared in ViewController as per below. //ViewController.h @interface ViewController:UIViewController{ IBOutlet UIWebview *Webview; } @pr...

Problem with TTWebController… alternative view controller template for UIWebView?

I have a UIWebView with content populated from a Last.fm API call. This content contains links, many of which are handled by parsing info from the URL in: - (BOOL)webView:(UIWebView *)aWbView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType; …and passing that info on to appropr...

iPhone XCODE Programming make a UIWebView Scrollable

here is the problem! I have a UIWebView in my programs that loads a php page. The problem is that if the page has a lot of lines i cannot see them. I can "scroll" the UIWebView but when I leave the finger from the screen the page comes back to the original state. I don't want to scale pages to fit the view cause if I do that the letters ...

Converting a HTML string to normal text using iphone dev

how to convert a HTML string to a plain text in iphone dev. Is there any in built functions which does it ? I am actually downloading a html string from web and showing it in the UIwebview and i am giving the user a edit option so that the html needs to converted to tet so that user can edit Thanks... ...

Find inside of UIWebView

Hello, I'm having hard time while trying to search inside of UIWebView. I know that I need to use javascript for that but almost everything I found uses replacing the HTML code and searching by element.type. My HTML file is so big that it's not possible to use this approach and honestly I don't need highlighting. Could anyone help me to ...

Reading UIWebView TEXT content

Hello Everyone, I am interested in reading ONLY the TEXT content of a UIWebView. How do I do this? I found lots of help on the web about reading the HTML content but I want ONLY the Text. Any suggestions? Thanks ...

UIWebView - remote html loading local images

I'm trying to develop an application using UIWebView. The app is loading remote URL's, so in order to make it quick I want it to use the images included in the application bundle. I was wondering if there is a way to do it without forcing the application to manually replace the address of each image to point into local resources? ...

move or center webview content

Hello, how could I center or move content loaded on a webview object programatically?? ...

iphone read txt file from UIWebView

I can read the data in file.txt file located in local disk. NSString *filePath = [[NSBundle mainBundle] pathForResource:@"file" ofType:@"txt"]; NSString* Data = [NSString stringWithContentsOfFile:filePath encoding:NSUTF8StringEncoding error:&error ]; now, I upload the file.txt file into a website. how can i read the data from the txt ...

How to create clickable phone number

Outside of a UIWebView, how can I make a phone number clickable that is in say a UILabel or UIButton? ...