21 Apr, 2010
Troubleshooting jQuery.get() Cache issue in Internet Explorer
Posted in: Snippets,Troubleshooting,Tutorials
There is an issue with jQuery.get() in Internet Explorer when trying to update content on the fly because IE caches XMLHttpRequest response and the AJAX call made via jQuery.get() is therefore always returning the same result. I encountered this problem when I was writing a function similar to facebook Like feature where the Like counter [...]
Continue reading Troubleshooting jQuery.get() Cache issue in Internet Explorer
05 Mar, 2010
How to disable text auto correction in iPhone web app
Posted in: Snippets,Troubleshooting
To turn off iPhone auto correction feature (predictive dictionary) on textboxes, add autocorrect=”off” attribute to your input tag. <input type="text" id="keyword" name="keyword" autocorrect="off" /> You can also turn off auto capitalising/capitalizing feature by adding autocapitalize=”off” attribute. <input type="text" id="keyword" name="keyword" autocorrect="off" autocapitalize="off" /> And lastly, you can turn off auto complete in a similar way. [...]
Continue reading How to disable text auto correction in iPhone web app
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
Problem in IE8: The upper half of the <fieldset> border goes missing. This problem has been discussed here and shown here. HTML: <form action="login.php" method="post" id="login"> <fieldset> <legend>Login</legend> <label for="username" class="label">Username</label> <input type="text" name="username" id="username"/> <label for="password" class="label">Password</label> <input type="password" name="password" id="password" /> <input type="submit" name="submit" value="Login" /> </fieldset> </form> CSS: fieldset { border: 1px [...]
Continue reading Fieldset and Legend bug in IE8
IFrame Injection Attack is considered one of the most common and most basic cross site scripting (XSS) attacks. If you have recently got an iframe attack to your website, do not panic. Here are a few things that you can do immediately after you discovered that your website has been a victim of an iframe [...]
Continue reading Troubleshooting an IFrame Injection Attack
If you’re finding that your Firefox browser is not caching any images (css/javascripts) and loading them multiple times on the same page, check the following cache settings of Firefox by typing in about:config in the browser’s address bar. Both browser.cache.disk.enable and browser.cache.memory.enable values should be set to true in order to enable browser caching in [...]
Continue reading Firefox browser cache setting
By default, FCKEditor textarea uses the same background image as your theme in Drupal. To remove the background image from the FCKEditor use default black text on white background so that it is easy to read/write inside the editable area, go to Edit FCKeditor profile (do this for all the profiles that you wish to [...]
Continue reading Removing background image from FCKEditor in Drupal
07 Nov, 2008
Links Love Series 2: MySQL server fine tuning and administrating
Posted in: Troubleshooting,WWW
MySQL, Linux, and Thread Caching Dealing with MySQL Too Many Connections error The MySQL Server :: Status Variables Tuning System Variables (MySQL) Administrating a MySQL server Technorati Tags: web, links, www, websites, mysql, database, fine tuning, server performance
Continue reading Links Love Series 2: MySQL server fine tuning and administrating
1. Uncomment the following line in php.ini. php.ini file is located in the main directory of your PHP installation, for example: C:\PHP\php.ini. ;extension=php_gd2.dll 2. Make sure you have php_gd2.dll file in the extensions directory. The extension directory of my PHP installation is C:\PHP\ext. Look for the directive “extension_dir” in php.ini file to get the exact [...]
Continue reading Enabling gd image library in PHP (Windows)
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 

