webview

How do I implement a customized list in Cocoa?

Hi, I want to build a Cocoa App with a list of entries very similar to the ToDo list of Things.app (see the screencast). The question is whether I should use a TableView, a CollectionView or a WebView. I think it could work with all of them, but which one suits the following requirements best? have a list of entries -> 1 column & ...

Changing text color in a WebView?

There's a method for altering background color but not font. Any ideas? TIA. ...

Setting webview background image to a resource graphic in Android

I'm trying to set the background of a webview to a drawable image resource in Android. From the sdk it seems something like this would work but it doesn't. WebView web = (WebView) findViewById(R.id.webView); web.setBackgroundResource(R.drawable.backgroundmain); web.loadData(profile, "text/html", "UTF-8"); Any idea's? ...

iPhone 3.0 WebView Scroll PDF Error - [NSCFDictionary _absoluteLinkURL]

I have a WebView which loads a PDF file: [myWebView loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:fileName ofType:@"pdf"]isDirectory:NO]]]; It works fine on iPhone OS 2.x but on iPhone 3.0, when I tap the PDF for scrolling, this error appears, and the app crash: -[NSCFDicti...

Can I force all links in a WebView (or WebFrame) to be treated as absolute paths?

So I'm working with WebKit's - WebView and WebFrame. I use a custom NSURLProtocol to retrieve the HTML for each request from a database. The problem arises from the fact that the links in the HTML are all relative, when they really ought to be absolute. For example, the page foo/bar.html May have a link in it that points to foo/baz.ht...

Weird behavior of webView

I've got an app with a webview. It was working great, and then I moved the webView into an NSSplitView. Now it seems for some reason that whenever I press any key to enter text into the webview, it scrolls down. I haven't a clue as to what could cause this. Please help! ...

Embedding WebView in UIView

Hi All, I'm trying to embed a WebView inside a UIView/TableView so as to implement the combobox. The WebView will have the select element , after the selection the value should be returned to the main UIView. I'm not sure how to implement this. In the ViewDidFinishLoad, I try to run the JavaScript like this: - (void)webViewDidFinishLoa...

How to use custom font with Webview

Now i want to display some unicode characters and i have used tag: something herer . But it seems that webview can not find the Arial font because i can only see UFO - Characters . Do i have to copy arial.ttf to somewhere or how can i use this true- type-font with webview? Thanks. ...

WebView data caching (Android)

I load HTML data into WebView with loadDataWithBaseURL Do it one more time Execute the following code and instead of going back to the 1st page - whole app exits. What am I doing wrong here? public boolean onKeyDown(final int keyCode, final KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_BACK && this.browser.canGoBack()) { th...

Address Bar in Cocoa Based Web Browser

I'm writing a minimal web browser using Cocoa. I've been struggling in my attempt to create an address bar ( basically an NSComboBox in which the drop down contains previously visited URLS ). The main issue is that the backForwardList attribute of my WebView object is updated at unpredictable times. For instance, if I select a url fro...

WebView JavaScript links work on touch but not when using trackball

I have a simple WebView-based activity that follows the Hello, WebView example to enable JavaScript and overload shouldOverrideUrlLoading(). This Activity works great when the user touches links on the webpage. However, if the user uses the trackball and clicks on a link, then the resulting page load shows a page with JavaScript disabl...

Retain data in WebView (Android)

I have various pieces of generated HTML/JS that I load into Activity with WebView#loadDataWithBaseURL. Is there a way to not load in again and again during Activity lifecycle? For example - user goes to check the message and then calls the app again. At that point - the Activity is stopped and probably destroyed, when it's loaded again I...

Getting Android SDK WebView and TabWidget to play nice

I’m taking the HelloTabWidget Android example and trying two things: Moving the tabs to the bottom vs. the top (if that’s even desirable from an Android UI POV) Making each tab show a particular WebView in the space above I’ve got this for a layout (high level): <TabHost> <LinearLayout> <FrameLayout> <WebView/> <W...

IPHONE DEV - Getting thread Exception with - (void)webViewDidFinishLoad:(UIWebView *)webView{ Method

Hi, Iam using - (void)webViewDidFinishLoad:(UIWebView *)webView method, to track every time my webview finishes loading and am loading a different page, depending upon the URL. Iam extracting a keyword word from the URL, to identify which page has been loaded. The problem is while am running this in a "if else" loop, It throws a obj_msg_...

Is it possible to use an object in a nib as a sort of template for dynamically creating multiple new objects?

I would like to design an NSwindow with a WebView in IB for displaying popup links. I need to be able to instantiate any number of these. Is this possible? ...

Android WebView crashes when clicking on a link.

Hi I have some WebView widgets inside my Activity. I use loadData() to set the content, and this html contains a link. Some of my WebViews work okay, when I click the link, the web browser is started in a new window, but some make my app crash when I click on a link. 10-13 08:45:24.257: ERROR/AndroidRuntime(751): Uncaught handler: thre...

How do I prevent a WebView from scaling down a rendered web page?

I'm developing a Cocoa/Obj-C application that involves a WebView (from the WebKit framework). I've noticed that this WebView presents a slightly scaled-down version of the rendered webpage. An example screenshot: In a browser (Safari or Firefox): In my WebView: These happen to be local HTML/CSS files generated by the program, but ...

webview in core animation layer

I wanted to create a webView inside of a CALayer. Maybe it is too trivial but I am just getting my head into CA. Would anyone please be able to help? cheers Ron ...

how to invoke a iphone native application from webview.

i have a application which has 2 parts one is a webview and other is a native iphone application. I want to invoke a native iphone application from a website inside a webview. ...

How to load a WebView on local files, but external to mainBlundle? (iPhone App)

Hi guys! I have written a script that download some HTML files into the Documents folder of my app! I want to load this files in my WebView, is that possible? For example: If index.html is present in Documents folder, load it, else load index.html in mainBundle! Thanks to everyone can help me! ...