Cross Browser Event Handling in JavaScript

On May 22, 2013, in Javascript, by Anuj Gakhar

If you are using jQuery, you can easily use .bind() and .unbind(), or .on() and .off() to attach/detach event handlers on DOM elements. But there are times when jQuery is not available/desirable in the project for various reasons. This is actually quite easy to do in native JavaScript, without any libraries. Most browsers register the […]

Tagged with:  

Book Giveaway : jQuery 1.3 with PHP

On December 15, 2010, in Javascript, Books, by Anuj Gakhar

Giveaway:- I’ve got 2 hard copies of this book with me. jQuery 1.3 with PHP . I am planning to give away these books to the 2 best comments on this post. The comments should be on why/how you would use jQuery in your next web project. jQuery is my favorite Javascript library and I’d […]

Tagged with:  

Free jQuery: Novice to Ninja Ebook (24 hours only)

On July 12, 2010, in Javascript, Books, by Anuj Gakhar

I have just found out SitePoint is giving away free PDF copy of this jQuery book. I have just downloaded mine, go ahead and download yours. 🙂

Tagged with:  

jQuery DatePicker Plugin and Facebox Gotcha

On June 22, 2010, in Javascript, by Anuj Gakhar

I have been using the excellent Datepicker Plugin by Keith Wood in one of my projects, along with Facebox and came across a gotcha today. The Situation :- I am basically using a link on the main page to open up a popup style window using Facebox. This main page itself is loaded via an […]

Tagged with:  

jQuery Validator Plugin and notEqualTo Rule (with Multiple Fields)

On May 24, 2010, in Javascript, by Anuj Gakhar

A reader asked me a question today on how to use the jQuery Validator to validate if 8 email address fields have a unique value. I have blogged about this before but that was for only 2 fields. Simply checking if one field is not equal to another. But here, we have a different situation. […]

Tagged with:  

jQuery tabs and IE8 caching

On January 20, 2010, in Javascript, Browsers, by Anuj Gakhar

I have been using jQuery tabs in several places in one of my websites. And most of the tabs I have are setup as AJAX tabs. ie they are fetching data only when they are clicked on. This has been working fine in all other browsers except in IE8. IE8 doesnt show the latest content […]

Tagged with:  

jQuery Validator Plugin and IE8

On October 30, 2009, in Javascript, Browsers, by Anuj Gakhar

I had been using the super jQuery Validator plugin in one of my projects. And everything was working fine, except in IE8. Isnt that typical of IE? Anyways, the problem was that I was using the validator plugin quite heavily and one of the forms simply refused to work in IE8. I did not try […]

Tagged with:  

jQuery Validation Plugin and notEqualTo Rule

On August 26, 2009, in Javascript, by Anuj Gakhar

I have been using the excellent jQuery Validation plugin in my latest project. It provides all the basic rules that you will need for validating your form. However, I had a form with 2 username fields on it and the requirement was that they should not be equal to each other.  I guess this is […]

Tagged with:  

jQuery form Plugin and Return Key Submit

On April 16, 2009, in Javascript, by Anuj Gakhar

I have been using this excellent jQuery Form Plugin lately and I came across a little gotcha today. First of all, this jQuery Form Plugin allows you to easily and unobtrusively upgrade HTML forms to use AJAX. The main methods, ajaxForm and ajaxSubmit, gather information from the form element to determine how to manage the […]

Tagged with:  

Using jQuery to change part of the className attribute

On April 8, 2009, in Javascript, by Anuj Gakhar

I had a situation today, where I wanted to replace part of the class of a given DOM element. To be more precise, the DOM element I was dealing with was like this :-

Tagged with:  
© 2011 Anuj Gakhar