Tag Archives: javascript

Objects in Javascipt

You can make objects in JavaScript. Here’s some code that does just that in a couple of different ways. Continue reading

Advertisements
Posted in Uncategorized | Tagged , , | 2 Comments

Colour Picker

It’s nice to be able to pick a colour sometimes. Here’s a basic HTML/JavaScript RGB colour picker. Continue reading

Posted in Uncategorized | Tagged , , , | 2 Comments

Dot-Dot-Dotter

Sometimes you want a submit button that you can only press once. It would be nice if it was obvious to the user that they’re not supposed to click it twice. How about making it disable, change the text to “waiting” and have an animating ellipsis (“…”)? I think that’d do the job. Continue reading

Posted in Uncategorized | Tagged , , | 1 Comment

Where to put your javascript

This is bad: This is good: What is even better is if you keep this in a separate .js file. That way your content should all be in the HTML file, your actions/behaviours should all be in the JavaScript file … Continue reading

Posted in Uncategorized | Tagged , | 2 Comments

JAWSM

I have just set up JAWSM (Jakes Awesome Web Site Modules (pronounced like a combination of “jaws” and “awesome”)). Over the next few months I’ll be posting some of the modules I’ve made there. This includes jaValidator and jaLogin both … Continue reading

Posted in Uncategorized | Tagged , , , | Leave a comment

Internet Explorer

I just wrote a JavaScript function which worked perfectly first time! I was more than a little chuffed until I tried it out in Internet Explorer in which it did nothing. The reason being that, in IE, there is no … Continue reading

Posted in Uncategorized | Tagged , , , , , , | 5 Comments

Beautiful HTML

This page has some nice pointers on how to write “beautiful” html. Includes a look at some of the new features in HTML 5. While we’re at it, here’s a link to a table of JavaScript events compatibility.

Posted in Uncategorized | Tagged , , | 1 Comment