Sep 2010
4
Replies
8

You shall not flicker!

flickering , – Off screen items on iScroll are not cached by the mobile browser, when it comes their turn to appear on screen they need a few moments before being accessible, creating a nasty flickering. Well, there's an easy trick to force the browser to cache all elements and it's so simple I regret not having tried it before.

Read more »
Aug 2010
26
Replies
13

Do you really need jQuery (for mobile dev)?

frame iphone , – I love jQuery, I use it everyday, you can spot it even on this blog. It's a life saver in the times of desktop browser discrepancies (yes, I'm talking to you IE), but modern browsers and specifically mobile browsers are good enough not to need any bloated framework on their shoulders. In this post I'm showing you that 90% of the times you are using a framework for nothing.

Read more »
Aug 2010
15
Replies
13

HW Accelerated Accordion

thumb-accordion , , – Accordion on mobile webkit is a bad beast. The accordion effect is usually obtained by reducing/incrementing the elements height. Unfortunately, on mobile, height and width are two not hardware accelerated properties, which means choppy animations. Fear not: I just baked for you a translations-only height-changes-free accordion for all your mobile needs.

Read more »
Jun 2010
9
Replies
3

Dealing with the bottom browser bar on mobile Safari

bottom bar void , – If you use iScroll or any web app that takes advantage of touch events you'll sooner or later stumble in an annoying bug: when you swipe over the bottom browser bar the touchend event is not fired and the application freezes. Here I'm trying to explain why this happens and how to fix it.

Read more »
May 2010
25
Replies
41

Slide-in menu

slidein-menu , , – Sometimes the screen of mobile devices is too small to fit all the controls, menus and options of your application. One solution is to create a slide in menu that the user can pull to access additional functions.

Read more »
May 2010
19
Replies
332

iScroll

iScroll v3 , , – The overflow:scroll for mobile webkit. Project started because webkit for iPhone does not provide a native way to scroll content inside a fixed size (width/height) div. So basically it was impossible to have a fixed header/footer and a scrolling central area. Until now.

Read more »
Nov 2009
30
Replies
184

Scrolling div for mobile webkit turns 3

iScroll , , – I'm pleased that my original iScroll was useful to many. In the past months I received dozens emails asking for new features and bug fixes. I think it's time to start developing a new version of the scrolling div for mobile webkit with added functionalities.

Read more »
Apr 2009
12
Replies
38

Rotating wheel for your iPhone webapps

Rotating wheel , , – In my last post I was suggesting to stop cloning the default Apple UI for web applications and start creating custom controls. This time I want to put my words in practice and present you with a rotating wheel select control, 150 lines of code all included (HTML+CSS+JS).

Read more »
Apr 2009
5
Replies
14

Don’t go native UI on your mobile web app

, – In most of my mobile webkit examples I tried to resemble as close as possible the native iPhone user interface. I decided to use a familiar UI just to show off the power of the little mobile browser but I highly discourage using Apple's graphics for your web applications.

Read more »
Mar 2009
8
Replies
139

Spinning wheel on webkit for iPhone/iPod touch

Slot Machine , , – I'm more and more amazed by the power of mobile webkit. I don't love the iPhone that much, but as a web developer the beauty of CSS transitions, animations and transforms can't pass unnoticed. This time I'm giving away a widget that resembles the native Picker View (UIPickerView) functionality but entirely built on javascript.

Read more »
Feb 2009
15
Replies
23

Remove onClick delay on webkit for iPhone

Stop Watch , , – Developing on the webkit for iPhone I encountered a curious delay on onClick events. It seems that the click is triggered with about 300 milliseconds delay. While this is unnoticeable on a standard web page, it can be annoying on a web application. Fortunately the click event can be overridden thus eliminating the delay.

Read more »
Jan 2009
19
Replies
24

Contact list on webkit for iPhone

, , – The interest around web development for iPhone rapidly faded out when native applications became reality. The webkit in each and every iPhone/iPod touch is actually so powerful that almost anything done by a native application can be replicated with a spoonful of javascript. Here's the recipe to bake a contact list with the ABC control to the right, just like the original Apple's application.

Read more »
Jan 2009
3
Replies
152

Scrolling div on iPhone/iPod Touch

, , – Recently I had to develop a web application for the iPhone and I was impressed by the possibilities offered by the little device. You can easily render complex 3d animations with a bunch of CSS rules or save data on a sqlite database, but I was surprised to discover that there is no easy way to scroll the content inside a fixed height div.

Read more »