webkit

Safari/Webkit jQuery UI sortable loses behavior when showing/hiding container elements

$(".someUl").sortable({ ... }).disableSelection(); $(".containerOfSomeUl").hide(); $(".someButton").click(function() { $(".containerOfSomeUl").show(); }); The above works fine in Firefox and IE, but not in Safari (but Chrome works). After I hide and later show the container, someUl loses all sortable behavior and does not work. I...

HTML5 Local Storage of audio element source - is it possible?

Hi stackoverflow experts I've been experimenting with the audio and local storage features of html5 of late and have run into something that has me stumped. I'd like to be able to cache or store the source of the audio element locally to enable speedier and offline playback. The problem is I can't see how this is possible with the cur...

How to set Android WebView background of selected textbox...

Ive got a input tag in an HTML page in an Android WebView. I want the background to be transparent. It is (via background-color: transparent) UNTIL the user selects it (gives it focus, to input data). Then the background is white. I've tried background-color on textbox and textbox:focus and Ive tried -webkit-appearance: none. None of th...

Drag and Drop in MobileSafari?

Is it possible to allow users to drag and drop items in mobile safari? Google images on the iPhone does something similar, but I'm not sure if it is true drag and drop or some other work around. Anyone have any insights? ...

UIWebView resizes text after rotating: looking for explanation for magical bug or my stupidity

Hello, all, so I have UIWebView in my application and I load some html (article) to it, put some CSS to make everything nicer. That's simple and clear and everything is perfect until I try to add reading in landscape functionality and then I've noticed that UIWebView ignores any css "font-size" I've put in HTML and increases font size d...

Why does Safari ignore css table row (tr) height attributes after re-draw?

I'm struggling to apply css-styling to a GWT (Google Web Toolkit) generated html table in Safari. Specifically, I cannot get Safari to respect the height attribute of a table row after I trigger any kind of re-draw of the table. The following basic example illustrates the problem: <html> <head> <style type="text/css"> tr...

WebKit on th iPhone: is it possible to copy text to the clipboad with JavaScript

The iPhone 3.0 software added copy/paste, and native application can programmatically copy content to the clipboard. Is it possible to do the same, i.e. copy text to the clipboard, from JavaScript code running inside Safari on the iPhone? ...

How to set 50% height for table cells for WebKit (Chrome, Safari)

Look at this code: <html> <body> <table border="1px"> <tr> <th align="center" width="70px">Name</th> <th align="center" width="70px">State</th> <th align="center" width="70px">Enabled</th> <th colspan="2">Date &amp; Time</th> <th>Message</th> </tr> <tr> <td rowspan="2"> <spa...

Detect rotation of Android phone in the browser with javascript

I know that in Safari on an iPhone you can detect the screens orientation and change of orientation by listening for the onorientationchange event and querying window.orientation for the angle. Is this possible in the browser on Android phones? Update To be clear, I am asking whether the rotation of an android device can be detected b...

Handling timeouts in Webview

Suppose you have a webview that would load a page, how would you handle the situation if the page fails to load, for instance, in 20 seconds? More specifically which WebView delegate method is called when the such situation occurs? - (void)webView:(WebView *)sender didFailProvisionalLoadWithError:(NSError *)error forFrame:(WebFrame *)f...

Which methods and class will be invoke when reload a webpage or open a new webpage in safari

As we know , When we load frame from webpage of safari, we will invoke the delegate methods of webkit informal protocol(WebFrameLoadDelegate): webView:didStartProvisionalLoadForFrame: webView:didChangeLocationWithinPageForFrame: But I want to know whick class and methods will be invoked when reload a webpage or open a new webpage ...

How to get a flash url in a webpage using a webframe?

As we know , When we load frame from webpage of safari, we will invoke the delegate methods of webkit informal protocol(WebFrameLoadDelegate): webView:didStartProvisionalLoadForFrame: webView:didChangeLocationWithinPageForFrame: and I know when reload the page I can do this: - (void)webView:(WebView *)senderdidStartProvisionalLoadFor...

Webkit javascript evaluation uses different document object?

I'm hosting a webkit frame in my objective-C application and trying to execute some javascript on the loaded document using stringByEvaluatingJavaScriptFromString. Every call I make to document.getElementsByTagName('*') or document.getElementsByTagName('a') returns 0 length collections, regardless of the page I load in my webview. Othe...

Safari/Chrome (Webkit) - Cannot hide iframe vertical scrollbar

Hello, I have an iframe on www.mydomain.com that points to support.mydomain.com (which is a CNAME to a foreign domain). I automatically resize the height of my iframe so that the frame will not need any scrollbars to display the contained webpage. On Firefox and IE this works great, there is no scrollbar since I use <iframe ... scrollin...

CSS transform matrices

I'm using the following CSS rules to do a transformation on a simple H2 element, only text inside it: -moz-transform: matrix(0, -1, 1, 0, 130px, 118px); -webkit-transform: matrix(0, -1, 1, 0, 130px, 118px); It works as expected in Firefox; i doesn't work at all in Safari/Windows and Chrome/Windows: the H2 stays where it is. Am I doing...

PHP/HTML: 500 Internal server error...?

The code provided in the link has problems. When trying to go to the real webpage, it gives me a 500 internal server error. What is wrong with the code? Anybody knows? http://www.gdscei.com/myphp.txt I am using iWebKit. (I know you cannot read the text, it's Dutch. But I am not seeing any problem with pure text.) ...

Table cells bad rendering with Google Chrome/Webkit

Hi, on the following code, COL1A and COL3A are not 50% height with Chrome or Webkit. It works fine with IE7 and Firefox. <table border="1"> <tr> <td height="100%">COL 1A</td> <td rowspan="2">COL 2</td> <td>COL 3A</td> <td rowspan="2"> COL 4<br/> COL 4<br/> COL 4<br/> COL 4<br/> COL 4<br/> ...

Best browser for testing under Safari Mobile on Linux?

I have an iPhone web app I'm producing on a Linux machine. What's the best browser I can use to most closely mimic the feature-limited version of Safari present on the iPhone? (It's a "slimmed down" version of WebKit, which is more limited than one might think.) ...

HTML5 DB error callback, how to know the sql request throwing error ?

I use the html5 database in safari like that (simplified code) : createContent : function() { this.database.transaction(function(transaction){ for (var elm in lotOfElm) { transaction.executeSql('INSERT....VALUES (?, ...?)', [elm.att1, elm.att2...], nullDataHandler, errorHandler); } }); }, errorHandler: fun...

How can I create thumbnails of web pages using a layout engine in Perl?

Are there bindings for layout engines like Gecko or WebKit for Perl? I found Gtk2-Webkit on CPAN but I would like to know if there are other options. My idea is to use one of those engines to create thumbnails of web pages from a Perl script. ...