Javascript
Javascript (ECMA Script, JScript)
Javascript performance: document.getElementById versus document.querySelector and document.querySelectorAll
Nov 26th
I’ve been lucky enough to be working on an internal project the last few weeks which has a known set of modern browsers as the target audience. This means i’ve been able to ignore some of the older design/development issues. I am really liking document.querySelector and document.querySelectorAll which are relatively modern (well, to me at More >
How to reduce web page download time in 4 (fairly) simple steps
Oct 1st
Web pages have generally become much more bulky in recent years. The trends for JavaScript-based functionality enhancements and the popularisation of digital photography have led to larger amounts of data being transferred (downloaded) per page and I can’t see a reversal of this happening any time soon. If you’re using a mobile device such as More >
Mootools element.morph() example
Aug 17th
A simple example of the time-saving element.morph() Mootools method which allows you to morph HTML elements from one property set to another.
A simple example of navigator.geolocation.watchPosition()
Apr 27th
As I mentioned in my previous post about the new/upcoming navigator.geolocation standard, I have been experimenting with Geo location on my IPhone so I thought I’d share some of that with you in case it helps anyone out. My example is very simple and is intended to show how you can use the JavaScript navigator.geolocation.watchPosition() More >
How to get an accurate Geo location from Apple IPhone using navigator.geolocation.watchPosition
Apr 27th
Anyone who’s tried using navigator.geolocation on a fixed-line (i.e. not mobile) device will know that it’s not too useful, usually at home my location is given as New York, USA when in fact I am in Oxfordshire in the UK! So, I turned to my IPhone and had a bit of a hard time at first trying to get an accurate position reading from navigator.geolocation.getCurrentPosition(). My findings here refer to using JavaScript in Safari on Apple IPhone (IPhone 3G with OS 3.1.3 on O2′s GSM network in the UK).
JSH5F – A Javascript method to enable HTML5 Form Elements in Browsers which support them
Mar 29th
HTML 5 offers 13 new form input element types but Browser support for these new input types is very scant at present. However, with JSH5F, you can use the new HTML 5 form elements right now in supporting Browsers without causing problems for people using non-supporting browsers.
UPDATE 2: HTML 5 Offline Application Caching (Javascript localStorage/sessionStorage) – A very simple, reasonably complete example
Mar 24th
In an effort to stay ahead or at least alongside the game, I am starting to investigate the upcoming technologies of HTML5 and associated Javascript. In this article, i’ll cover a simple example of Javascript localStorage/sessionStorage, how to detect on-line/off-line status and off-line cache Manifest files.
