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...

JSON date string to Date Object using RegEx

JSON has become de-facto standard for web services. When you use JSON in web services the date is returned as some numbers. How to convert it to readable date format? Checkout the following code on how we utilise Regular Expression to tackle this.. var prettyDate =...