webkit

Deselect highlighted link when webView:shouldStartLoadWithRequest:navigationType: returns false

I'm displaying some HTML with links in a UIWebView. I want the links to open in Safari after the user confirmed that the link should really be opened. Opening the link works fine, but if the user cancels, the link remains selected and is highlighted in blue. How can I deselect the link and get rid of the highlighting? - (BOOL)webView:(...

Save Web Archive with Cocoa

Hello, I would like to save a webpage programmatically with Cocoa to the hard disk as a webarchive like Safari. I've searched for any example programs from Apple yesterday, but I've only found a class reference at Apple Developers page for a webarchive class. I play a little bit with the webarchive class and unfortunately my solution d...

What functionalities can I access by WebKit?

Would I be able to access the following information by HTML 5? GPS position Bluetooth device list Wi-Fi network list Contacts Calendar ...

QNetworkAccessManager/QNetworkReply with custom QTcpSocket?

Hi Is there any way to replace QSslSocket used by QNetworkAccessManager with my own implementation? I was really looking forward to use WebKit!! I'm working on attaching PKCS11 implementation to our Qt based software. So far the only way I found is to use QHttp - but doc says that this class should not be used.. I find QNetworkAcces...

webkit translateX animation is rolling back to initial position

I am trying to do a images gallery for mobile webkit, The only way it is actually fast enough is using the hardware accelerated translateX . My problem is that the div take back its initial position at the end of the animation. I add the slideGalLeft class cliking on the left button. to the animated div You can see an example here, ...

Starting Development for Google Chrome....Getting Started Issues!

Our organization has decided that my project will be developed for internal use with the Google Chrome browser. So yesterday I started looking around the internet for just how I would go about doing that. I found the WebKit.org development tool and have been trying to install it using the instructions found here: http://webkit.org/buil...

Can a WebKit-based Mac app use HTML5 databases from Safari?

I work on a WebKit-based app that "runs" several different web apps for a big telco client. Recent Safari versions are slower and slower to write out changes to the shared cookie cache and I am looking for alternatives to handing off a session from Safari to our client WebKit app. I'd like to use HTML5 database support found in newer Sa...

uiwebkit error 101

Hello, I have a search box which takes keywords in Hebrew and English and searches in wikipedia for the corresponding keywords. If I type in English it works well but when I type in Hebrew it shows this error: when I type Hebrew keyword url looks like http://he.wikipedia.org/w/index.php?title=%D7%9E%D7%99%D7%95%D7%97%D7%93%3A%D7%...

zoom out using javascript css

for zooming I am using el.style.zoom = 1.5; el.style.WebkitTransform = 'scale(1.5)'; here e1 will be , I use webkit based browsers. Now how do I zoom back to original size ? Confused bec document says for zoom out have to use less than 1, and how to scale back to original size in webkit ? ...

Setting -webkit-gradient backgrounds via jQuery doesn't work

Defining gradients in CSS works fine, but when I try to do this with jQuery, nothing changes. Typing $('#header').css({background: '-webkit-gradient(linear, 0% 0%, 100% 100%, from(#cfc), to(#afa)'}); in Chrome's (4.0.249.43, Linux) JS console (in page's script tag too) really does nothing (but returns jQuery object, so it's valid). Tr...

How to manipulate pages content inside Webkit window (Using QT and QTWebKit)?

Hello! Please help me to understand, how can I manipulate html content which is shown inside qt webkit window. I need simple operations like filling in input fields and clicking a button. Any tips/article on this? ...

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

Disable drag/drop in QtWebkit

Hi I am trying to create an HTML GUI for an application using Qt's WebKit... so far everything is going smooth with a minor problem, I don't want people to be able to drag and drop images from my GUI. I have disabled text selection using a small java script. But I'm not sure how to disable image dragging.... I have used onmousedown="ret...

QtWebkit as a desktop application GUI

Hi I was wondering if anyone knows about good tutorials or articles describing methods of creating an HTML GUI for an application using QTWebKit for a windows desktop application. I am mainly concerned about communicating messages, events and information between lets say a DLL(written in C++ for example) and the GUI (QtWebKit). need g...

What can webkit do?

Since there are more and more apps going the web way (like Phonegap, Appcelerator over the mobile and desktop apps development and the ones that I don't know yet), I am wondering what kind of role the web engine (seems the famous engine is webkit) is playing now and in the future? A web engine is capable of rendering HTML and CSS(for in...

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

Quicktime Web Player resizes in iPhone Safari

Hello all, I am using the following code to show a quicktime player in my website when it detects an iPhone Safari browser: {document.write('<object id="id1" type="video/quicktime" width="326" height="16" style="height: 16px; left: 187px; position: absolute; top: 266px; width: 326px; z-index: 1; "> <param name="src" value="http://websit...

Safari rendering bug with CSS transitions

Hello, I'm experiencing an annoying bug with Safari while combining opacity changes on hover and webkit-transition (eg: http://cld.ly/55xc2). By the way, the bug isn't there anymore in latest webkit nightly builds and everything works fine on Chrome. Do you know any workaround to fix this? I hope Apple's going to correct it soon… Chee...

Is there any equivalent to IE conditional comment for chrome and safari?

I am wondering if there is any thing which works like ie conditional comment for webkit. I want to change width. For example, <!--[if IE]> <link href="css/ie.css" rel="stylesheet" type="text/css" /> <![endif]--> Thanks in advance. ...

QtWebKit Manager

Hi I've been asked to research a way to manage a QTWebKit module outside of QT. The idea is to use QTWebKit as an interface(GUI) for an application. The desired (Manager) should work as a communication mean between the GUI and the main application which is written in C++. The manager should be designed in a way that it can produce java...