Sergio Panagia Blog

Category Archives: Web Development

Into PhoneGap: an example of API-aware native iPhone app with HTML5 and SQL local database

These days I had the opportunity to test PhoneGap, an open source framework for creating native mobile apps with web standards. So, first things came to mind when you think about HTML5, is that even if mobile browsers are very fast to implement new features, you cannot truly count on “standards” but on “drafts”. The [...]

No need to jQuery: managing events

A very important topic in web development it’s about Events. jQuery offers a nice syntax with functions like element.click(), MooTools -instead-  tries to remain closer to natural JavaScript implementation with element.addEvent(‘onclick’, fn). Modern browsers have really no problem with this, the syntax is simple: el.addEventListener(“click”, eventTriggered, false); function eventTriggered() { //do your stuff }

Effetti grafici con Javascript: semplice comparsa e scomparsa con animazione

In un esempio recente su questo blog ho mostrato come ottenere un’effetto slide verticale (simulando un’illusione di movimento grazie ad alcune immagini ad-hoc). Qualcuno mi chiede se è possibile realizzarlo anche con un’interpolazione orizzontale: niente di più facile, MooTools mette a disposizione delle classi che facilitano il lavoro (Fx.Slide, invece del semplice tween utilizzato nell’esempio [...]