The Css Bug

Ever tried to use the onChange event to catch a change of state in a radio button group? The following code works alright in Firefox, but not in Internet Explorer:

<input type="radio" name="options" id="option1" onChange="alert('option1')">
<input type="radio" name="options" id="option2" onChange="alert('option2')">

IE treats the onChange event in a different manner: it recognizes something changed just after you lose focus [...]

HTML 5 Today

New features in HTML 5 are here

Javascript lose focus

How to validate a textfield using the javascript on lose focus event

SyntaxHighlighter Plus problem

As I  started to build this blog, I clearly needed some solution for displaying code on a wordpress blog.
Asfter studying a few solutions with more or less results, I decided uppon SyntaxHighlighter Plus which seams to be the best solution out there.
However, although it worked great with the default Wordpress theme I realised that as [...]

Ajax for newbies: verify if record exists in database table using prototype and PHP.
Step 1: include prototype.js
Create a new page (index.php). Add this line of code in the tag of index.php to include prototype framework:

<script type="text/javascript" src="prototype.js">
</script>

Step 2: HTML code for index.php

<input type="text" name="name" id="name" />
<input type="submit"  value="Verify" onclick="javascript:verifyName()"/>

<span id="result" style="color:#009900"> </span>

Step 3:Create [...]