I have been using reCAPTCHA a lot lately, but the default UI is not very intuitive nor pretty. Thanks to reCAPTCHA Wiki, I found out that you can customise the look and feel of reCAPTCHA using theme option. See below for my sample code. <script type="text/javascript"> var RecaptchaOptions = { theme : ‘custom’ }; </script> [...]
Continue reading Customising reCAPTCHA Theme
This example shows how to populate dropdown menus automatically with values from a JSON object using jQuery. Among other things, it demonstrates: How to define a JSON object in Javascript How to write a custom function in jQuery using $.fn How to traverse a JSON object using jQuery How to populate a dropdown menu dynamically [...]
Continue reading Dropdown menu population using JSON and jQuery
This is a lazy fix to redirect any url that doesn’t exist (resulting in 404) to the homepage. Add the following line of code into the .htaccess file inside the root directory of your website. ErrorDocument 404 /
Continue reading Redirect to homepage when page not found
All these CSS are used in a conditional CSS file for IE 6 to ensure CSS validity as some of the properties used here are proprietary to the IE 6 browser. <!–[if IE 6]> <link rel="stylesheet" type="text/css" href="ie6.css" /> <![endif]–> Setting an opacity .transparency { filter: alpha(opacity=50); } Change the link to a hand cursor [...]
Continue reading Some simple but effective CSS rules for IE 6
Hello! Welcome to Web development blog! My name is Ei Sabai and on this blog, I write about web development, mobile app development, latest web technologies and the likes. Read more 

