Safari om the iPhone is an incredible powerful browser and comes with a whole bunch of features.
Besides the amazing support for CSS3, a superfast rendering engine and great JavaScript support, there are a few hidden gems I want to explain in this (and maybe following) blogposts. If you are interested in mobile web development, maybe you will find a few features you haven’t seen before.
Making your web app iPhone ready
Note: you can visit the example used in this blog post from your iPhone here.
Dion Almaer was faster than me blogging about TouchScroll. Here is what you are waiting for – the “official” blog post about TouchScroll and the link to the repository.
Here it is: TouchScroll, our scrolling layer for WebKit Mobile. It is JavaScript/CSS 3 based and allows for fixed elements like headers and toolbars on web pages when viewed on the iPhone or on Android. It works on the iPad, too. Check out the demo (short URL: http://u.nu/8uvg8) to see it in action – it works in Desktop Safari (at least kind of) or WebKit Nightly (very good), but I recommend you have a look at it on your iPhone, iPad, or Android based device.
JavaScript allows to comma-separate multiple variable declarations, like so: var i=0, j=1. Declaring multiple variables using one var-statement accross multiple lines is a NO GO! I consider this evil. And I learned it the hard way. It might look pretty nice, looks like less code and more efficient. But it definitely is not so when writing code. If it results in more speed let your build tool, compressor or compiler do it. But don’t write code which spreads multiple variable declarations in var-statement across multiple lines!
PERIOD.
Read the rest of this entry »
During the Oredev speakers dinner last November, I was having an interesting discussion about the car industry and how Google in one swipe mangled up the turn-to-turn navigation market. During this discussion and other interesting conversations at the following JsConf, it it became more and more clear that we (web developers) should be able to write applications for instance for cars, write applications for phones we can plug into cars, and write those applications using web technologies – meaning JavaScript, HTML and CSS.
It’s been quite some time since the last dojo.beer() event took place in Germany and a lot of things have changed within the Dojo Toolkit with the release of 1.4.0. This is why we would like to invite everyone who is interested in Dojo, or who would like to talk to other Dojo developers, to the next dojo.beer() event in Munich:
| Date: | Friday, 12.02.2010 |
| Time: | 3:00 PM – 11:00 PM GMT+1 |
| Seats: | about 80 |
| Language: | English |
| Location: |
EineWeltHaus Schwanthalerstr. 80 80336 München http://www.einewelthaus.de |
You can signup here:
In a lot of programming languages, I would even say in most programming languages, the following looks awkward and does surely not work. One of those languages is C. But JavaScript is sometimes a miracle and like a box of jewelery, ready to be discovered. And if you are new to it, it is loaded with surprises. Read on to get a tiny glimpse into some of them. JavaScript has some really interesting things waiting.
Read the rest of this entry »

