iPhone <button> padding unchangeable?
A HTML5 <button> in Mobile Safari seems to have fixed, unchangeable left and right padding. Here's a demo plus how it looks in Safari 5 and iOS4. How can I get rid of that padding? ...
A HTML5 <button> in Mobile Safari seems to have fixed, unchangeable left and right padding. Here's a demo plus how it looks in Safari 5 and iOS4. How can I get rid of that padding? ...
I've been trying for hours with all the different delegate methods to access the content of an XHR request that is automatically requested when a page is loaded. I have used the following which has shown that WebKit is seeing the request in the first place (as the URL that's displayed is the correct one). - (void)webView:(WebView *)sen...
Webkit's blog post from last year on 3D transforms explains the various transform 'functions' that can be used in the -webkit-transform property. For example: #myDiv { -webkit-transform: scale(1.1) rotateY(7deg) translateZ(-1px); } My question: how do you access individual values in JavaScript? When you read the webkitTransform prop...
I've been playing with WebKitGTK+ recently, in Vala and C. I want to create an application that could use a WebKit instance for the front end, but all logic and information retrieval in the backend, using Vala or C. My question is, if it is possible, how could one pass a message or bubble an event back up to the parent application throu...
Because of WebSocket protocol changes in WebKit nightly build r59903, I need to know whether I should run additional scripts. That depends on WebKit build number. I'm using jQuery as a platform, so assume $.browser.webkit is true. Then how do I check whether client WebKit build is 59903 or higher? $.browser.version tells something like 5...
Hi, I am new to this site and had been successfully using the "HTML5" Cross-origin resource sharing (CORS) to POST data to my server. I just recently tried to include GETs in that as we are trying to have all of our communications be non-reliant on a JavaScript library. In doing so I have run into an odd issue that seems somewhat fixable...
I am new to Objective-C and as my first application I am writing I will be starting off with a simple WebKit based browser. So far I have done good and am able to load websites but after a while of usage memory usage tends to get high. I have read the documentation on retain, release, autorelease management and I just had one question. I...
Hi all! I would like to extract the individual elements of a composite webkit transformation in Javascript. For example: var act_transform = element.style.webkitTransform gives me: scale(0.6) translate(0px, 2236px) rotate(12deg) What is good human readable, but terrible to parse programmatically. I'm interested on all 4 numerical ...
I am working on air project based on html/javascript support. I have created undo/redo system on javascript classes, but it is interfered by browser (webkit) own undo(ctr+z) action (it focuses on last modified input element). Can I somhow turn off browser default behavior? ...
Currently, I have the following class: #btnHelp { background: url(images/btnHelp.png) center no-repeat, -webkit-gradient(linear, left top, left bottom, from(#9adc6d), to(#6eba3a)); } I'd like to separate out the background image part from the gradient part into 2 separate classes, like this: #btnHelp { background-image: url(images/...
Hi, I've got a lot of POIs (compare MKAnnotation Protocol) in a backend on a webserver. I don't want to have a complete dump of all those in an iPhone database since normally you only need the POIs around your area. So my idea was a webservice which gets the actual shown region as paramters and gives back all relevant POIs. So far so goo...
I am not able to figure out why this does happen. On all non-webkit browsers I tested the code below with (IE8, FFx 3.x, Opera 10.x) there is no scrollbar on the <pre> area. For both Chrome and Safari vertical scrollbar appears. Of course I do not want it to appear. The code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//...
More recently, I have been seeing questions with the tag "webkit". Such questions usually tend to be web-based questions relating to CSS, jQuery, layouts, cross-browers compatibility issues, etc... So what is this "webkit" and how does it relate to CSS? I have also noticed a lot of -webkit-... properties in the source code for various w...
I'm working to build a web app that uses the WebKit Touch Events JS API. How can I QA this app on my mac with touch events, and not be forced to swap between developing on a mac and testing on an iPhone. Ideas? ...
As I understand it, both Safari and Chrome use WebKit. There are many projects that allow you to embed WebKit, but want I actually want is to embed Chrome (for Windows) in a C# app so that my application renders identically to Chrome on Windows. So when I embed, say, AwesomiumDotNet, will the rendering, CSS support, Javascript engine, f...
I'm using the following to capture Touch Events on an Iphone. document.addEventListener('touchmove', function(event) { event.preventDefault(); var touch = event.touches[0]; $('#touchPosition').text("Touch x:" + touch.pageX + ", y:" + touch.pageY); }, false); Strangely, I'm finding that the positions are wrong...
Here is a test case/live example. Summary of problem: This only works in WebKit: Y.one('#container').setStyle('margin-top', 100); This works in all browsers: Y.one('#container').setStyle('margin', 100); Why does setting margin-top work only in WebKit? EDIT: the fix is shown below in one of the answers. You need to have marginTop ...
I have the following line of CSS: background: -webkit-gradient(linear, left top, left bottom, from(#243d63), to(#1a2638)); How can I make the background transparent, ie an opacity of .9, so the user can see what's under the div that has this style? Just for WebKit only concern... Thanks ...
my code: for(var myLine = 0; myLine < 100; myLine++) document.getElementById("myDiv").innerHTML += "line " + myLine + "<br>"; ............... <div style="position:...etc; overflow:auto;" id="myDiv"></div> this works without a glitch in every browser on all non mobile platforms. However... when this is implemented on iPhone (...
We have some JavaScript code that resizes <div/> elements (adjusts height/width/padding/margin etc.) based on the dimensions of a parent <div/> element, specifically the height and width of the parent we use in the calculation. The parent div height and width is defined in a external CSS file, and <link> is used to include the stylesheet...