webview

Android - Use WebView to evaluate a javascript string and return the value

Given that scripting is not natively supported in Android and wrapping libraries like javax.script.ScriptEngine into your app will make it too large, is it possible to send a javascript string to an invisible WebView and have it evaluate the string and return you the results (another string)? I want to go this route because I want to ...

Disable a WebKit WebView

Is it possible to disable all user interaction with a WebView, apart from scrolling? I want the user to be able to see the page (and possibly select things), but not click links/right click/refresh/focus form fields/trigger UI DOM events (onclick etc). I see on this question I can disable right click and selection, but that doesn't help...

how can i select something in an uiwebview with code ?

hello ! can someone tell me how i can select something in an uiwebview with code ? ...

Catching keyboard events in a Cocoa app WebView

I have a Cocoa app that embeds a WebView. I'd like to intercept a keyboard shortcut so that I may perform an action in the WebView. I do not want to implement a menu item for this action. In fact, ideally I only want this shortcut to apply when the user is in a textarea box in the WebView. How do I catch the keyboard shortcut so that I...

How to get image data from a WebView into an NSData object?

I have a Cocoa app that embeds a WebView. The WebView loads html elements including images. I have the textual links for the images (e.g. "http://www.domain.com/path/image.jpg"), but what I want is the image data itself so I can put it in an NSData object and ship it off to Growl. The WebView must have this data since it has downloaded a...

Making all Links in a Web View open in the Default Browser.

I have a web view that displays a web page but I want all links on that page to open in the default browser. How would I do this? ...

Android WebView touch event link

Hey, I have a webview with a banner and when I click on the banner there should open a second webview that follows the link. How can I do that? I have created the first WebView and it shows my banner but when I click on it, it opens the link in the same WebView. How can I catch any events in the WebView when I click on a link that it s...

How to resize a android webview after adding data in it

In a layout (linear, vertical) hierarchy I've got several view and one of them is a WebView. They all have same parameters: android:layout_width="fill_parent" android:layout_height="wrap_content" For all views the spacing between element is correctly handled but for the Webview there is a lot of spaces after the displayed text inside....

view only specific div from a web page with web view

Is there any way to any way to allow the user to only view a certain <div> with WebView? Thanks! ...

Why does Android WebView display a black screen?

I've been banging my head against a wall this afternoon trying to get a WebView to work. Below is the code in the main class: public class fkyougoogle extends Activity { /** Called when the activity is first created. */ WebView webview; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(save...

Use URL to show new activity?

Inside my app, I was wondering if it was possible to make a certain URL in a WebView, when clicked, to redirect to a new activity view outside of the WebView? Thanks! ...

WebView not Loading Data?

I'm trying to load the parsed html data from an rss feed using a WebView, but the webview claims that the page: "data:text/html;utf-8,[The html I'm trying to display]" is not available. I find it strange that it seems to be putting the html data into the url, when I just want it to display it. Here's my code right now for the webvi...

Android WebView wrap-content

Hi Friend... a simple question... Is it possible to Load a URL in a webView and resize it to fit the screen... i Mean i want to make the WebPage small so that the user doesnt need to scroll... IS it possible???? ...

image included javascript not appear in the webView

hello ,I used webView to show javaScript,one image was included in the javaScrip,but the webView not run the image on the contrary appear a "?"image. Idonot why? my code: demo.html <html> <script language="javascript"> /* This function is invoked by the activity */ function wave() { document....

Why Webview prevent showing a webpage when click a swf?

Now I show a swf from web in my webview , but when I click the url address in the swf to show another page with my default web browser, I found the webveiw prevent to do it , Why ? How to allow it ?Thank you very much! ...

How can I pop up Webkit's Web Inspector from my WebView object programmatically?

How can I pop up Webkit's Web Inspector from my WebView object programmatically? I succeed to enable Webkit's Web Inspector on my WebView. It's working well, and now I can pop it up by clicking "Inspect Element" on context menu. And I want to do this with my push button. But I couldn't find a proper way to do this. My DOM knowledge is 1...

Getting source HTML from a WebView in Cocoa

I'm working on a OS X program where the user does some light WYSIWYG HTML editing in a WebView. Being new to programming with Cocoa and WebKit, I have absolutely no idea how to get selected text from a WebView - the intention being to take what the user selected, add HTML code (like div's or span's) around the text, and replace the selec...

Other ways for zoom-in zoom-out in Android WebView?

My actual task is to have zoom in zoom out for the WebView, but I don't want to scale images. Are there ways to do that? 10x in advance, Danail ...

Are there Rotate Webview examples around?

Hello I thought I had already asked this question but I cant see it so I will ask again. I need to write an app which simply contains a webview that rotates. How do I rotate the text when the user puts their phone from portrait to landscape or vice versa? Cheers Paul ...

Problem with WebView loading specific web page

I'm trying to develop an android app which accesses google wave. When I try to load this page (http://gwavefree.netau.net) the app just doesn't do anything and I get a blank screen. When I try to go to another site it works fine. Please help me! Here is my full source code: package co.uk.maxmarroni.apps; import android.app.Activity; i...