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 ...
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...
I have a WebView, and I want to call a view in Objective-C from JavaScript. Does someone know how I can do this?
...
Hi,
Is there any easy way to set the contents of a webview to an html string (without having to load a file)?
Thanks
...
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 ...
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...
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...
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...
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...
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 ...
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...
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...
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.
...
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!
...
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...
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...
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...
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...
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??
...
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...