How to prevent a user leaving a page with unsaved data
A lot of good websites provide a failsafe check that a user might accidentally leave a page with unsaved data. This is a good thing to have, specially in forms which are long or important. It can be...
View ArticleDynamically resizing IFRAME as per the inner content
An IFRAME is the best way to embed a page into another page . The main problem sometimes faced is if the content within the iframe is going to change in length dynamically then at some point you will...
View ArticleRoll out your own Tab UI using HTML and JQuery
WHY RECREATE THE WHEEL? There are lot of tab controls out there, both using plain javascript and others using Jquery, so why the need to create our own. There are two reasons for doing this:...
View ArticleGet all HTTP headers in Javascript
The code below is a single function which can be plugged into any page to capture and store all the HTTP headers, available in the page request, as an associative array. The function also dumps...
View ArticleMinify Javascript with C#
The code below compresses and minifies javascript files. Minification is not the same as obfuscation. Minification removes all whitespace , comments and needless characters so that the end result is...
View ArticleMinify Javascript with Python
The code below compresses and minifies javascript files. Minification is not the same as obfuscation. Minification removes all whitespace , comments and needless characters so that the end result is...
View ArticleJQuery issue in removing items in a dropdown
If you have a very large dropdown in an html page – say a few thousand items, and you want to clear all of them, then using jQuery .empty() function is very slow. In most...
View ArticleIE version detection in Javascript
Detection of the newer versions of IE is much more messy than before. Since IE uses the Trident rendering engine, each IE version uses a [...]
View ArticleA Speech Translation mashup in less than 5 hours
The Web Speech API is a little known framework, which has been developed by Google a couple of years back. It is a very good [...]
View ArticleGeocoding An Address With Google Maps API
OVERVIEW One of the most useful features of Google Maps its ability to locate an address on the map. Geocoding is the process of taking [...]
View Article