Book Review: Learning jQuery 1.3 by Packt Publishing

On March 24, 2009, in Javascript, Books, by Anuj Gakhar

I just finished reading the Learning jQuery 1.3 book, authored by Karl Swedberg and Jonathan Chaffer and published by Packt Publishing . They sent me a free review copy of the book and this is a personal and independent review of the book.

Tagged with:  

Using jQuery to Load Alternate Images

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

We can use the onerror event of an img tag to load an alternate image if the main image is not found. Something like this :- [xhtml]<img src="my_image.jpg" onerror="this.src=’offline.jpg’" />[/xhtml] The above HTML code tries to load my_image.jpg and if not found, loads offline.jpg as an alternate. This is pretty good because this means you […]

Tagged with:  
© 2011 Anuj Gakhar