webkit

how do you pop up the Save Image/Open in New Page/Copy menu on command in mobile safari?

I need to find out how to make the menu that appears in mobile safari on the iphone/touch when you tap & hold an element appear on a single tap without having to hold. how would i do this? preferably i would use webkit & no js. ...

How can I retrieve the HTML to be loaded into a WebView (or WebFrame) from a local persistent store?

So, I have a bunch of HTML is being stored in a SQLite database, and they link back and forth amongst themselves. When a user clicks to follow a link, that request needs to be serviced by pulling the appropriate HTML out of the database. This could result in needing to load images, which are also being stored in the database (this is a f...

How to access DOM of a web page in QtWebKit?

How to access DOM of a web page in QtWebKit? I don't see any methods exposing DOM in QtWebKit... ...

Problem with WebKit rendering google.com (and a few other sites)

I'm a noob to Cocoa programming, so please excuse the possible stupidity of this question. I'm trying to build a web browser using Cocoa/MacRuby but am running into this strange rendering problem - a lot of sites render just fine, but all Google sites and a bunch of other sites (such as the CouchDB website) render with very small fonts....

Where is a good place to look for help starting development with Webkit?

Hello every one, I have just started to work on WebKit. I am just a beginner with Webkit... What am trying to do is, i am developing an Application based on Webkit like a basic browser. I am using GUI library other than QT or GTK so where should i start with. I am working on Linux Platform with C/C++ Languages. I just want to create s...

How can I get the element the caret is in with Javascript, when using contentEditable?

Hi, Let's say I have some HTML code like this: <body contentEditable="true"> <h1>Some heading text here</h1> <p>Some text here</p> </body> Now the caret (the blinking cursor) is blinking inside the H1 element, let's say in the word "heading". How can I get the name of the element the caret is in with JavaScript? Here I would li...

Multiple versions of Safari on Windows XP?

Is there any way to run multiple versions of Safari under Windows XP? I'm interested in running Safari versions 3.1 and 4. Specifically, i want to debug this type of problem with Safari 3.1 which does not occur on my current version: http://stackoverflow.com/questions/770669/invalidnodetypeerr-in-jquery-when-doing-multiple-selectors-on...

WebKit width not updating?

I have a piece of code which runs on window resize. I am pulling the width, and the outerWidth of a input text element. This process works fine in every browser, except Webkit, which returns the proper result from outerWidth, but the result from width never changes from the on load original. This is actual console output from my script...

Rendering Webkit into GL texture

Hi, I'm looking for a portable, as-less-hackish-as-possible way of rendering WebKit into texture, and injecting events back into texture. Bonus points for being able to override theme of UI elements (textboxes, buttons, scrollbars). Extra bonus points for being able to render into SDL surface as well. Overall, I'd like to be able to jus...

Qt WebKit Printing Shrink Factor

When printing from WebKit, it seems to automatically impose a shrink factor on the output. Is there a way to disable shrinking when printing, preferably without modifying the WebKit source? I think it may be possible using Qt 4.6 trunk and using setFixedLayout with a longer height, to trick WebKit into not shrinking, but I haven't tried...

Any way to prevent Safari and Chrome to show loading animation while XHR is active?

I'm using XMLHTTPRequest binding to receive asynchronous events from the server. XHR opens a server URI and then hangs until an event comes or timeout occurs, in any case JS fires a new XHR on the same URI immediately. This works fine, but there is an annoying problem in Safari and Chrome: both keep showing "page loading" animation whil...

Framework for (HTML + JS) Desktop Client

Hello, I plan to write a Desktop Client for Windows and Mac. It will be powered by web techniques (HTML + JS). Therefore it shall run on a WebKit engine on the user's desktop. Recently, I saw an interesting approach for this issue: Appcelerator I love its basic concept, but I don't want be dependent on their services. Instead I want to...

WebView history

When is a page added to the forward backward list in WebView? I have [webview setMaintainsBackForwardList:YES], but [webview canGoBack] still returns NO after I do a couple of [[webview mainFrame] loadRequest:request]. Why is that? ...

How can I access the DOM using WebKit.NET?

I'm using WebKit in a C# application to render a CSS-styled XML document, and I'd like to be able to add DOM elements. How do I get access to the DOM to do this? The problem seems to be that there is no property in the WebKitBrowser class that gives access to the private webView member. Is it possible? Do I need to modify the class to ad...

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...

How to do animation of using CSS and webkit

I can use follow css code to do some simple animation, but I want do more advanced: opacity: 1; -webkit-transition-property: opacity, linear; -webkit-transition-duration: 2s, 4s; I want the div from opacity: 0 to opacity 1. Also, I want the position is move from x, y to x , y+10 Lastly, I want the div become invisible, so, I wa...

How to ensure images are loaded inside a JQuery plugin?

While creating a JQuery plugin that required image dimensions, I discovered that webkit browsers like Chrome often return 0 size for images because they're loaded in parallel. My quick and dirty solution was to wrap the code that calls my plugin in a $(window).load() event: $(document).ready(function() { $(window).load(function() {...

OS X 10.5 SDK deprecated getAttributeNS; what should I use instead?

I'm upgrading a project to use the 10.5 SDK. I'm getting warnings of this form: warning: 'getAttributeNS::' is deprecated (declared at /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/WebKit.framework/Headers/DOMElement.h:74) ...for getAttributeNS, hasAttributeNS, removeAttributeNS, replaceChild, and getElementsByTagNa...

Automatic multi-page multi-column flowing text with QtWebkit (HTML/CSS/JS -> PDF)

I have some HTML documents that are converted to PDF, using software that renders using QtWebkit (not sure which version). Currently, the documents have specific tags to split into columns and pages - so whenever the wording changes, it is a manual time-consuming process to move these tags so that the columns and pages fit. Can anyone ...

How to know when a web page is loaded when using QtWebKit?

Both QWebFrame and QWebPage have void loadFinished(bool ok) signal which can be used to detect when a web page is completely loaded. The problem is when a web page has some content loaded asynchronously (ajax). How to know when the page is completely loaded in this case? ...