webkit

Global console object in Safari/Chrome being reset.

I'm working on a jQuery plugin and am trying to make a uniform, cross-browser console object for debugging. The plugin will utilize Firebug or FirebugLite but also allows the user to choose the browser's native console object, if available. For Safari/Chrome, the console methods accept only 1 argument, while the Firebug console API (whic...

Tracking actions in a browser component

Hi Guys, Im a c# developer and I believe that what I want to achieve is going to move out of the realms of some drop in .NET component so I am looking for advise on what I use externally which .NET can inter op with. My requirements are to have an embedded web browser control in a WPF/Winforms applciation BUT I will also need to keep...

Is WebKit among those browsers implementing the upcoming x-domain XMLHttpRequest features?

Many of the upcoming generation of browsers (FF 3.1, IE8) are going to support cross-domain XMLHttpRequests in one fashion or other (with security concerns, as long as the server opts in, etc). Is the same bit of functionality going to be in WebKit? FF: https://developer.mozilla.org/en/Cross-Site_XMLHttpRequest IE: http://blogs.msdn...

Have WebView zoomed by default

Is it possible to have a WebView zoomed in by default. Im trying to place and advert in my application and would like it to be zoomed to 100% by default so it fills the space. Being able to disable zooming would also be a benefit but I cant disable all interaction as I would like them to be able to click the link ...

How do I make a reusable XIB with it's own UIViewController ?

I am trying to create a reusable "picker". It is basically like a keypad of a phone. Since I will be using this a lot in my iPhone app, I have been frustrated with trying to make it appear. It is in its own XIB file and has its own UIViewController subclass as the FileOwner. However, when I instantiate this with: MonthPickerViewControl...

WebKit API for DOM

Does WebKit expose an API for working directly with its DOM? I'm looking for a class like HtmlElement that can be used to build/traverse trees of HTML content. I'm trying to host WebKit as a web browser control in a desktop application, and would prefer a direct API rather than going through COM. Thanks! Thanks! ...

Gif marker problem on google map

I am using Google Maps on iPhone and adding GIF marker all markers are rotating on map. One min it will rotate but after that it will stop rotating. Now the problem is that after some time marker will stop rotating. My map is refreshing every 5 second and it will add or remove marker form the map. GIF marker are gif image which is ro...

What's a good embedded browser for a pygtk application?

I'm planning on using an embedded browser in my pygtk application and I'm debating between gtkmozembed and pywebkitgtk. Is there any compelling difference between the two? Are there any third options that I don't know about? It should be noted that I won't be using this to access content on the web. I'm mainly using it for UI purpose...

Hiding textarea resize handle in Safari

I'm using textarea components in my application, and I control their height dynamically. As the user types, the height is increased whenever there is enough text. This works fine on IE, Firefox, and Safari. However, in Safari, there is a "handle" tool in the lower right that allows user to resize the textarea by clicking and dragging. ...

iPhone Webkit jQuery strangeness: Can't update content

Running into the strangest problem on iPhone using jQuery with my WebViewController. I have a div into which I append content: <div id="thumbnails"> Here are your thumbnails: <div id="mythumbs"></div> </div> The code looks like: for (var i=0; i < thumbs.length; i++) { var item = thumbs[i]; $('<img class="imgthumb" />').dat...

Webkit API for Safari, Iphone

I went to the webkit.org and, honestly saying, the site doesn't provide any tutorial or documentation of the API. I'm looking for what new CSS, and DOM webkit provides. Anyone know where I can find the information? ...

GtkMozEmbed or WebkitGtk on Windows

Hello, does anyone knows how to compile either GtkMozEmbed or WebKitGtk on Windows? I'm using WebkitGtk on Linux, but now I need to port the application to Windows. I didn't find any binary and failed building from the source. I already have a gcc 3 + GTK+ 2 + make, binutils, etc, working (I can compile GTK+ 2 applications). ...

Anyone have a simple example for webkit?

Does anyone know of a simple "Hello World" example for using the Webkit library in Python? I have a GTK window, and inside I want to put Webkit. With Python/mozembed (Mozilla/Gecko), this is simple: mozembed = gtkmozembed.MozEmbed() mozembed.load_url('http://google.com/') ..and I have already created my browser, how do I do this with...

getting an insert ID from Webkit's HTML5 database storage

Webkit (on iPhone and Safari, at least) supports HTML5's database storage via SQLite. I'm trying to figure out how best to get the insert ID (there's an autoincrement field 'id' in the database) for the following transaction. db.transaction(function(tx) { tx.executeSql("INSERT INTO teams (name) VALUES (?)", [$('#team_name').val()]); ...

-webkit-transition-property receives unexpected values in Safari 3.1.2 (Windows)

I am developing an iPhone-optimized website and testing it on Safari 3.1.2 on Windows. For some elements in the website I am applying implicit animation using -webkit-transition style. So basically, I have elements like this: <div style="-webkit-transition: left 2s linear;">...</div> that sometimes are present in the document from th...

Does Safari and/or WebKit implement the equivalent of window.navigator.online?

Does Safari have anything equivalent to the HTML 5.0 spec for window.navigator.online? http://www.whatwg.org/specs/web-apps/current-work/#browser-state If not are there any alternatives to polling to establish connectivity state? My question pertains to Safari 4.0+ and iPhone software 2.1+ ...

Keyboard Events for Modifier Keys in Safari 2.0

Hello, I'm using keyboard events ('keydown' and 'keyup') to detect exactly when the user presses or releases the shift key. In Safari 3+, this works fine. However, Safari 2.0 doesn't seem to fire keyboard events for the shift key—in fact, it doesn't seem to fire events for any of the modifier keys... Does anyone know how I might deal ...

Is there a way to use the WebKit web inspector from a Cocoa WebView object?

I would like to use the WebKit web inspector in a custom browser based on WebKit on OS X. Is it possible to use the web inspector on a webview object? If so, how? ...

Submitting a form on 'Enter' with jQuery?

I have a bog-standard login form - an email text field, a password field and a submit button on an AIR project that's using HTML/jQuery. When I hit Enter on the form, the entire form's contents vanish, but the form isn't submitted. Does anyone know if this is a Webkit issue (Adobe AIR uses Webkit for HTML), or if I've bunged things up?...

Browser interface to command line python program

I have a command line tool that I have written (in Python) that interfaces to a SQLite database (one DB per user). This program presents a lot of data to the user which can be cumbersome in a terminal. One option is to provide a wxPython interface, but another thought is to leverage Firefox or Webkit to provide an interface. Anyone eve...