Posts Tagged ‘JavaScript’

HTML DOM and easy screen scraping in PHP

Friday, August 29th, 2008

One of my favourite features in JavaScript is its ability to interact with the DOM so easily. This is made even easier by various JavaScript libraries and their selector engines largely based on CSS expressions.
Working with XML is easy in PHP with various extensions such as SimpleXML, however unfortunately HTML is far more tedious. Thankfully [...]

Python - Some syntactic sugar

Monday, August 4th, 2008

I’ve been playing with Python for a while now and basically I love it. This post is going to be a very quick overview of some of Pythons features that might be new or a bit odd to a developer from a different background. I’ll be refering to Java, PHP and JavaScript in particular… This [...]

Sharing your Google reader shared items

Saturday, July 12th, 2008

I use Google reader all the time, and its cool sharing items that you read about. The only problem is I don’t know many people that use Google Reader and therefore not that many of them see what I share.
So how can we get around this? Well I found out thanks to this website that [...]

JavaScript: Detecting Caps lock

Wednesday, July 2nd, 2008

I wanted to see if you could detect caps lock in JavaScript. Why? As a small usability touch, basically alerting users that caps lock is enabled when they are entering passwords for example. I’ve wrapped up the logic in a simple function that can help you detect caps lock on a key press. Here is [...]

JavaScript Object Manipulation

Sunday, May 25th, 2008

JavaScript is a very dynamic language, so much so that you can redefine and change objects on the fly. This can be a strange concept to programmers from a more traditional OO background such as Java or C#, however once made familiar it can be very useful.
This feature is not restricted to modifying your own [...]