PhoneGap and External URL

Lately I was working on a project based on PhoneGap. As you know PhoneGap utilises the HTML5 while taking advantage of the native features such as camera, accelerometer etc. The client came up with a odd idea, that when user clicks on an external URL, it should open...

Force Text Input to Lower case using JavaScript

Sometimes its mandatory to get smaller case or uppercase user input from users. For example usually we don’t type email address in capital letters (even if we do, it’s not a crime). Let’s assume we have a text box as below Now using jQuery I’m gonna make sure that...

Encode Colon “:”

If you use URIencode() method you will find that some special characters (, / ? : @ & = + $ #) including colon is not encoded to ‘%3A’. To overcome this issue, you should use encodeURIComponent()...