How can I split the content of a HTML file in screen-sized chunks to "paginate" it in a WebKit browser?
Each "page" should show a complete amount of text. This means that a line of text must not be cut in half in the top or bottom border of the screen.
Edit
This question was originally tagged "Android" as my intent is to build an And...
In my HTML code, I got a <div>. When the user taps anywhere inside that div, I'd like to alter various properties, like text size and background color. To me, this sounds a lot like creating two CSS styles for each state sounds like it should work, so I created the following CSS:
div.tappable {
background-color: red;
font-size: 10...
Hi everyone here.
We can use the XPathEvaluator object(in javascript) to do xpath evaluation on Safari,Google Chrome and Safari on Iphone. But on android the browser said that the XPathEvaluator object is undefined.
So how can I get a instance of XPathEvaluator object, or is there any other solution to perform xpath evaluation on andro...
I am getting following error while compiling webkit-gtk for directfb, any guess how to resolve it?
make[1]: Entering directory `/home/sunny/svn/iSense-E/trunk/stable/thirdp/src/webkit-1.2.0/WebKitBuild/Release'
/bin/mkdir -p ./.deps/DerivedSources
CC WebKitTools/GtkBonker/Programs_GtkBonker-GtkBonker.o
CXX WebKitTools/DumpRen...
There are very good demos show a fixed header on top & scrollable contents below in mobile Safari(see: cubiq.org/dropbox/iphonescroll.html & doctyper.com/stuff/iphone/fixed/). But if we also want to scale image around within lower part. How can we do this?
...
I'm using webkitNotifications and createHTMLNotification, etc. to successfully create a notification in Chrome (Windows).
Now I would really like to have the notification window communicate back (or at least set the focus to) the tab/window that created the notification (which is part of the spec). I realize it's still in the early pha...
I'm doing some work with PyQt4 and QtWebKit, and in the web page request need to send a custom "Host" header along with the standard HTTP request. I'm not seeing any options for adding custom headers to the request, but this is all new to me so I hope I'm missing something. I'm looking here:
http://doc.trolltech.com/4.6/qwebsettings.htm...
I'm trying to perform an Ajax/XMLHTTPrequest from within a local HTML file in QT 4.7RC QWebview. It consistently fails with an empty responseText and status 0. I've set the follwing
page->settings()->setAttribute(QWebSettings::LocalContentCanAccessRemoteUrls,true);
but it has no effect (I can load remote images without problems thoug...
I would like to be able to detect touch/click events on the tag in the UIWebView. But it doesn't look like it responds to that event. Any ideas?
videoElement.addEventListener('touchstart', myFunc, false);
Could also be the 'click' event.
...
This is a demo dragging on google maps v3,
but ,it can't work good at chrome and safari ,
So , how to change it ?
thanks
...
When I start a webkit browser instance and enter http://localhost, the result of $this.innerWidth() is right (I used jQuery).
But if I tried to refresh the page, the result of $this.innerWidth() will change, which is wrong. It seems no sense, as I think refresh is the same to start a new page loading.
And this only happens in webkit br...
I have a html page with some links. When you click on a link, some jQuery code hides the div container, and shows another div. The originals links, in the first div, are no longer visible.
From the browser (webkit on android) point of view, everything works perfectly.
But if I touch the screen, the hidden links react as if they were vi...
Hi,
In a UIWebView (multi-touch enabled) I got a page with two divs (div1 and div2), each of them having registered for the touchstart and touchend events. Everytime they are receiving touch events, I am dumping the content of:
event.touches: contains all current
touches
event.targetTouches:
contains touches relevant to the
given tar...
I'm trying to build webkit chromium port on Windows with 3D_CANVAS support turned off, here is what I did to build it:
modify WebKit/WebKit/chromium/features.gypi, set ENABLE_3D_CANVAS=0
build-webkit --chromium --release
I got a bunch of link errors while linking against webcore.lib, after checking the source code I found that with E...
Toying around with the WebKit browser in the new Kindle 3G, I noticed that window.screen.width and window.screen.height don't reflect the actual screen dimensions. The physical screen (or rather, paper) dimensions are 800 x 600. I get:
800 x 506 in landscape mode
600 x 706 in portrait mode
But interestingly, both Chrome and Safari (w...
For some reason the onPageFinished is firing before the WebView has finished loading - I can't figure out why...
public class WebViewClientTest extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layo...
Hello ;)
i'm currently working with PyWebKitGtk in python (http://live.gnome.org/PyWebKitGtk). I would like to clear all cookies in my own little browser. I found interesting method webkit.HTTPResponse.clearCookies() but I have no idea how to lay my hands on instance of HTTPResponse object :/
I wouldn't like to use java script for that...
I have a div #HangerLeft that the css.right is automatically generated via jQuery to sit on the left side of the page based on the body width. It is absolute positioned.
function hangerLeft() {
var hangerPosition = (jQuery("body").innerWidth() / 2) + (990 / 2);
jQuery("#HangerLeft").css("position","absolute").css("right", hangerPosi...
So I am styling the Wordpress more link on the blog index page, and I've used some custom styles and markup that are displaying inconsistently between webkit based browsers (Safari and Chrome) and Firefox. All is well in Firefox, but in webkit it doesn't look as I'd like it to. I can't seem to find how to fix it in webkit.
The problem i...
Given an HTML DOM ID, how to get an element's position relative to the window in JavaScript/JQuery? This is not the same as relative to the document nor offset parent since the element may be inside an iframe or some other elements. I need to get the screen location of the element's rectangle (as in position and dimension) as it is cur...