Javascript

Martyn on February 23rd, 2010

There are hundreds of ways to add video to a Wordpress blog, Flash Video is a good place to start.  If all you want is to embed a Youtube then Smart Youtube from Vladimir Prelovac reduces the complex to the ridiculously simple. If you can find the V on your keyboard then you will master [...]

Continue reading about How to add a video to your website

Martyn on May 22nd, 2009

Ever wondered how to tell if you are hiring a competent programmer?  In the following video Ron Burk discusses the Psychology of Incompetence in which he leaves you with no illusions.

If builders built buildings the way programmers wrote programs, then the first woodpecker that came along would destroy civilization

Continue reading about What makes a competent programmer?

Martyn on July 7th, 2008

To remove stuff such as punction and spaces (or anything you want) from a text box before sending to the server for validation you can use code like this, first the HTML:-

<input
name="name"
onblur="this.value = entrycheck(this.value);"
type="text"
size="20">

And then the following Javascript will remove invalid characters when the user moves to another field:-

<script type="text/javascript">
function namecheck(theInput) {
var valid [...]

Continue reading about Limiting text input to characters and digits