Archive for the ‘JavaScript’ Category

Real programming with JavaScript - I/O - Some input and output options

Wednesday, September 1st, 2004

We can’t go on like this. Using prompt() and alert() for all input and output (as we did in the previous articles is unwieldy and just plain dumb when there are many ways of skinning this particular cat. So this month we’ll make a diversion into some I/O options that are available to JavaScript. (more…)

Real programming with JavaScript - Associative Arrays

Sunday, August 1st, 2004

Making a hash of JavaScript arrays

In the previous article we looked at creating, manipulating and extracting values from JavaScript arrays. Arrays allow us to store lists of related data using a numbered index.

But in JavaScript, the index of an array need not be a number, it can also be a word (more…)

Real Programming with JavaScript - An array of functionality

Thursday, July 1st, 2004

In the previous article I sang the praises of JavaScript as an advanced programming language, then proceeded to demonstrate some rather unsophisticated methods of input/output. In hindsight my examples didn’t support my argument too well. In this article I will rectify things by having a good hard look at JavaScript arrays. (more…)

Real programming with JavaScript

Tuesday, June 1st, 2004

Introduction

For quite some time I have not had a high opinion of JavaScript. This is probably because in the late 90s I spent far too much time trying to get so-called Dynamic HTML to work reliably on the version 4 flavours of Netscape and Internet Explorer. And also because JavaScript is far too often used in stupid and annoying ways on the Web, to name a few: pop-up windows, window resizing, dialog boxes, cursor trails, and JavaScript-only links and forms.

However I have recently discovered that, as with many other programming languages, the power of JavaScript can be harnessed for good as well as evil. JavaScript is a surprisingly powerful programming language and is well worth a detailed look. (more…)

Bookmarklets - Add macros to your web browser for free.

Thursday, April 1st, 2004

What is a bookmarklet?

Apart from being another appalling neologism, a bookmarklet is a clever and simple way of using Javascript to add macro functionality to your web browser. (more…)