jQuery

jQuery plugin for GeoLocation and Google Maps

Given below is an attempt at creating a jQuery plugin that displays a google map pointing out the current location of the user. We’ve used HTML 5 Geo Location API to find out the coordinates (latitude and longitude) and pass […]

Issues with standalone jQuery/jQuery Mobile

Scanning the code of my recently concluded project using jQuery and jQuery Mobile threw light on a number of issues with using these two libraries in a project. Yes, there are lot of positive points of using jQuery/jQM but let’s […]

Unit testing JavaScript – III

Unit testing JavaScript – III

In the earlier post, we discussed using QUnit to unit-test JavaScript. We didn’t have any UI in the example. Let’s build a simple UI to call the Calculator’s add and subtract functions. Let’s use jQuery to construct the UI as […]

Unit testing JavaScript – II

Unit testing JavaScript – II

In the earlier post, we discussed the need for unit testing JavaScript code. Continuing further, let’s write a simple piece of JavaScript code and test it using QUnit library. To begin with, let’s create a file calculator.js and have two […]