Archive for the ‘JavaScript’ Category

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 [...]

Lambda Functions - Does your language support it?

Sunday, May 18th, 2008

What are Lambda functions? Basically lambdas are functions that can be treated as anonymous or as objects. It depends on the language that is being used. They are very useful and at the core of the Functional Programming paradigm. So what languages can you create lambas in? Here is a few;
JavaScript

var foo = function(x, y){

  [...]