webkit

Get real image width and height with Javascript in Safari/Chrome?

I am creating a jQuery plugin. How do I get real image width and height with Javascript in Safari? Following works with Firefox 3, IE7 and Opera 9: var pic = $("img") // need to remove these in of case img-element has set width and height pic.removeAttr("width"); pic.removeAttr("height"); var pic_real_width = pic.width(); var pic_r...

Is it possible to render web content over a clear background using WebKit?

I'm trying to gauge the possibility of a patch to WebKit which would allow all rendered graphics to be rendered onto a fully transparent background. The desired effect is to render web content without any background at all, it should appear to float over the desktop (or whatever is displayed behind the browser window). Has anyone seen ...

Loading css rules dynamically in Webkit (Safari/Chrome)

Hi all, I currently have issues in Webkit(Safari and Chrome) were I try to load dynamically (innerHTML) some html into a div, the html contains css rules (...), after the html gets rendered the style definitions are not loaded (so visually I can tell the styles are not there and also if I search with javascript for them no styles are fo...

Implementing a WebView database quota delegate

How do I implement this method (see below)? I'm new to Objective-C and I'm just not getting it right. From: http://lists.apple.com/archives/Webkitsdk-dev/2008/Apr/msg00027.html By default databases have a quota of 0; this quota must be increased before any database will be stored on disk. WebKit clients should implement the Web...

WebView renders in the wrong location in my ScreenSaverView

I've written a screen saver that displays a web page. It works exactly as I want it to on my main display, but in the preview and secondary displays, the web view is hanging off the top of the screen. Example (from preview): Uploaded with plasq's Skitch! My code is pretty straightforward. From within initWithFrame:isPreview: I have ...

How can I have multiple instances of webkit without sharing cookies?

I have an app that creates a couple of WebView instances and I'd like to have them operate as independently as possible. At the very least, I don't want them sharing cookies. A quick google search gave me results liking "you can't." I'm hoping someone has a better answer. ...

I've tested in Chrome, do I need to test in Safari?

I've tested in Chrome, do I need to test in Safari? ...

Connecting to the Internet in an Xcode Application

Hi, The last GUI programming I have done was with Visual Basic, which included objects like Winsock and Inet to easily connect to the internet and retrieve the source from webpages. I just got started into XCode, and was wondering if there is a similar component. I see that there is a Webkit option in the Library, but I have no idea ho...

WebKit support for Delphi

Is there a way to embed the WebKit engine into a Delphi application? ...

Table problems with WebKit

I'm having trouble getting this code to show up correctly in WebKit browsers(chrome/safari). It looks fine in IE6, IE7, and FireFox. <table width="100%"> <tr> <td rowspan="2" style="vertical-align:middle;"> <a href="http://http://{$smarty.const.DOMAIN}/company/a_cherry_on_top/line/gift_cards/?v=s2"&gt;&lt;img src="/i/thumbnails/a...

How do you get rid of all scrollbars in an iframe in Safari/webkit?

I've tried scrolling="no" and overflow:hidden; Nothing seems to make the vertical scrollbar go away in iframes on Safari/webkit. Anyone know? ...

How to get Webkit bugs fixed?

Webkit has a few bugs that prevent our software from running in this browser (and Safari/Chrome/etc). We don't have sufficient C++ knowledge to fix the bugs ourselves, but we're certainly willing to fund the development and do extensive testing of the patches. What would be the best way to proceed? I was thinking of submitting a project...

Why won't my WebView display the URL I've specified?

I'm working with a WebView. If I place this call in my -awakeFromNib: [myWebView setMainFrameURL:@"http://www.google.com"]; I get the behavior I want. Google's homepage displays in my WebView. But, I need to set the main frame's URL in another method from a mutable array containing NSStrings. This method call [myWebView setMainFrame...

Why don't Django admin "Today" and "Now" buttons show up in Safari?

I'm developing a Django application that contains a model with a date/time field. On my local copy of the application, the admin page for that particular model shows this for the date/time field: This is as expected. However, when I deploy to my webserver and use the application from there, I get this: The application on the server...

Directly passing html code into WebKit

How do I pass HTML code contained in a NSString directly into WebKit. I'm looking for something similar to: [aNSTextField setString:@"foo"]; Would it be as simple as something like that? Or would I have to resort to something like saving the text to a file and then accessing it with a file:// url? ...

How to show a local image in the webview?

I want to show a local image in the webview , How to do ? somebody has a easy demo ? thanks a lot!!! ...

How do I print an IFrame from javascript in Safari/Chrome

Hi, Can someone please help me out with printing the contents of an IFrame via a javascript call in Safari/Chrome. This works in firefox: $('#' + id)[0].focus(); $('#' + id)[0].contentWindow.print(); this works in IE: window.frames[id].focus(); window.frames[id].print(); But I can't get anything to work in Safari/Chrome. Thanks ...

Writing to an iframe from NSTextView

Hey All, I have built a web based WYSIWYG editor, which Im accessing programatically from my cocoa application. At the moment I'm able to run scripts and retrieve the HTML from the iFrame in the editor, but I'm unable to send text from an NSTextView to the iFrame. Any ideas? The editor is here http://www.alexmillsdesign.com/Developer/F...

What JavaScript events are available to WebKit on Android?

I'm building a mobile web app targeting Android users. I need to know what JavaScript events are available to me. I have been able to make the following work, but not terribly reliably: click mouseover mousedown mouseup change I have not been able to get the following to work: keypress keydown keyup Does anyone know the full list...

Cocoa radio WebView scrolling

In cocoa using XCode and IB is it possible to have a scrolling view of WebViews from WebKit that double as radio buttons? How do I do this and how do I retrieve which view is selected? ...