webview

How to check if a file exists in Documents folder?

Hi guys, I have an application with In-App Purchase, that when the user buy something, download one html file into the Documents folder of my app. Now I must check if this HTML file exists, so if true, load this HTML file, else load my default html page. How I can do that? With NSFileManager i can't get outside of mainBundle.. Thanks ...

Android WebView Cookie Problem

I have a server that sends my android app a session cookie to be used for authenticated communication. I am trying to load a WebView with a URL pointing to that same server and I'm trying to pass in the session cookie for authentication. I am observing that it works intermittently but I have no idea why. I use the same session coo...

How to call Objective-C from Javascript?

I have a WebView, and I want to call a view in Objective-C from JavaScript. Does someone know how I can do this? ...

Set contents of webview to html string (cocoa)

Hi, Is there any easy way to set the contents of a webview to an html string (without having to load a file)? Thanks ...

Which methods and class will be invoke when reload a webpage or open a new webpage in safari

As we know , When we load frame from webpage of safari, we will invoke the delegate methods of webkit informal protocol(WebFrameLoadDelegate): webView:didStartProvisionalLoadForFrame: webView:didChangeLocationWithinPageForFrame: But I want to know whick class and methods will be invoked when reload a webpage or open a new webpage ...

How to get a flash url in a webpage using a webframe?

As we know , When we load frame from webpage of safari, we will invoke the delegate methods of webkit informal protocol(WebFrameLoadDelegate): webView:didStartProvisionalLoadForFrame: webView:didChangeLocationWithinPageForFrame: and I know when reload the page I can do this: - (void)webView:(WebView *)senderdidStartProvisionalLoadFor...

iphone UIWebView, Landscape, Zoom!

I have a UIWebView in my app and I am having trouble making it work correctly simultaneously with landscape and the viewport zoom. If I load pages in portrait and then rotate the phone, using the autoresize, it works correctly, zooming in for pages that are set to zoom. However, if I start the webview in landscape mode, I have to rotat...

Why is WebView unable to open some local URLs (Android)?

I have a WebView that I'm using to open some files stored in the assets/ directory of my project. It works fine for most of the files, but there's one in particular (and I'm sure others I haven't found) that it just will not open. The file I'm having problems with is named: "assets/ContentRoot/Photos/XXX Software Logo - jpg - 75%.JPG...

Android - WebView dies on resume

I have Activity with some data displayed in WebView that I load with WebView#loadDataWithBaseURL Then I have/click menu option that fires android.content.Intent.ACTION_SEND Choose email from the chooser Google email comes up (as expected) Discard email and hit back button Action with WebView tries to resume Bang - I get NullPonterExcep...

Image not displaying from local html on iPhone webview

I am calling an infoPage.html as below with an image from Resources and referenced as img src="eye.png" in the html, the text displays correctly but I cannot load the image (only a ? appears), any suggestions... - (void)viewDidLoad { [super viewDidLoad]; CGRect webRect = CGRectMake(15,40,300,450); UIWebView *myWebView = [[UIWebView ...

Is there any way to have WebView auto-link URLs and phone numbers in Android?

If a page has a URL or a phone number on it that isn't a link is there any way to have WebView recognize it and automatically turn it into a link like you can with TextViews? With a TextView you would simply set the android:autoLink to the desired settings: <TextView android:autoLink="web|phone" ... /> but I can't find any eq...

WebView not loading Assets correctly...

I have a WebView that I'm using to display some html/image files stored in the assets/ directory. I'm able to have the WebView load and html page fine with: mWebView.loadUrl("file:///android_asset/ContentRoot/SubDir/file.html"); or String data = StaticFunctions.inputStreamToString(getAssets().open("ContentRoot/SubDir/file.html")); m...

HIghlighting the text in PDF document iPhone xcode

Hii friends, i am developing a e Book using a web view where i am loading the web view with PDF document.Now i want to develop the search functionality but i am not unserstanding how to implement it.So kindly give me a solution, Thanks in advance. ...

How can I check if a WebView URL is a local file??

Hi guys, I have this question that is unsolved for me.... I need to check if the current URL of my webview is a local file in the Documents directory of my app....how can I do this?? Thanks! ...

Can I suppress the authentication dialog in a Cocoa WebView?

I'm using a Cocoa WebView object and I'd like to suppress the authentication dialog that pops down when the user types in the wrong credentials. The server is sending back a Www-Authenticate response header which I believe is triggering the dialog. Can I somehow intercept this header before it triggers the authentication challenge? Or i...

Navigate a WebView

Hi, With a webview is it possible to set up a simple 'Back' button (either in a navigation bar or a top toolbar) that doesn't show the back button on the first URL of the WebView - and only appearing on a second URL to get back to the first? Unless I'm getting getting this wrong, in a lot of hybrid native/web apps such as News apps, yo...

Navigate a WebView

Hi, With a webview is it possible to set up a simple 'Back' button (either in a navigation bar or a top toolbar) that doesn't show the back button on the first URL of the WebView - and only appearing on a second URL to get back to the first? Unless I'm getting getting this wrong, in a lot of hybrid native/web apps such as News apps, yo...

WebView Cocoa control crashing on window close.

I get a crash in WebEditorClient::clearUndoRedoOperations which is trying to access -[WebView(WebViewEditing) undoManager] when I close the main window of an NSDocument that contains a webview with a text editor in it. It only happens when there is an undo-able state. Seems like a bug in Cocoa, but I might be doing something wrong. Any i...

How to empty cache for WebView?

Hi guys, I have a Webview that must load an image! When I upload this image I see every time the same image as before, and i must reboot my app to see the new image... I think is a cache problem..How can I solve that?? ...

Navigation view system with webview problem with touches!

Hello i have search everything and i didn't figure this out! I have a tab bar controller with 5 navigation controlls, in one of the navigation control, i have a view, with a table view inside, and when i click that item i push a new view, that view have view -webview -view i create that second view(is transperant) because...