function (jQuery)

TwitterFacebook
Get flash to fully experience Pearltrees

Detect any Event on an Element using jQuery

The jQuery event.type is very useful when you want to detect the nature of an event on an Element and determine if it was a click, doubleclick, mousemove, mouseenter and so on. Here’s how to detect the Event Type on an Element with minimal code in jQuery <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> < html xmlns ="http://www.w3.org/1999/xhtml" > < head > < title > Detect any event </ title > http://www.devcurry.com/2009/07/detect-any-event-on-element-using.html
Welcome jQuery newbies! I’m writing a quick post here to help clarify some differences between the parent() and parents() methods. Given the following HTML: <html>…<body><div class=”one”><div class=”two”><p><span>Some text</span></p></div></div></body></html> $(‘span’).parent() will select the <p> tag such that the element set in the jQuery object is [span]. $(‘span’).parents() will select all parent tags such that the element set in the jQuery object is [p, div.two, div.one, body, html]. http://jqueryminute.com/jquery-parent-vs-parents/

jQuery parent() vs. parents() at jQuery Minute™

Note: This information may now be out of date. It was published in 2010! In truth it’s not a fix as the iPad doesn’t have the ability to hover. Apple has developed extra events to replace hover on it’s mobile touch devices.

TouchStart() & TouchEnd() (function jquery)

http://blog.0100.tv/2010/05/fixing-the-hover-event-on-the-ipadiphoneipod/
There are a few things that a console.log wrapper can and should do: Prevent errors if a console isn’t around (i.e. IE) Maintain a history of logs, so you can look in the past if your console is added afterwards (e.g. firebug lite) Normalize the browser differences in console integration (e.g. when passing multiple arguments into console.log() ) For something you type regularly, make it quicker to type for the lazy among us. But there are a few considerations… http://paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/

log() – A lightweight wrapper for console.log

jQuery idleTimer plugin

There are a few cases where you want to know if the user is idle. Namely: You want to preload more assets You want to grab their attention to pull them back You want close their banking session after 5 minutes of inactivity. (Jerk!) http://paulirish.com/2009/jquery-idletimer-plugin/
http://www.infinite-scroll.com/infinite-scroll-jquery-plugin/ Note : This documentation is currently out-of-date and will be updated soon. In the mean time, please refer to the GitHub README and Wiki . This plugin aims to progressively enhance your page.

Infinite Scroll jQuery Plugin « Infinite Scroll | jQuery plugin, Wordpress plugin, interaction design pattern

The Difference Between jQuery’s .bind(), .live(), and .delegate() - Alfa Jango Blog

http://www.alfajango.com/blog/the-difference-between-jquerys-bind-live-and-delegate/ The difference between .bind() , .live() , and .delegate() is not always apparent. Having a clear understanding of all the differences, though, will help us write more concise code and prevent bugs from popping up in our interactive applications. The jQuery team have announced in v1.7 a new method for binding events called on .
We've been looking to provide a higher-quality, spam-free experience at the plugins site for some time, and a major error on our part forced us to shut down the current site before we could put the new one in place. We are developing a new site, and you can follow along with its development on GitHub . For more information about this transition, including steps you can take as a plugin author to prepare, please read our post about what's going on .

Advanced Browser Check

http://plugins.jquery.com/project/advbrowsercheck

JQuery live 'change' doesn't work in IE | Taswar Bhatti Blog

Posted in JQuery on May 4th, 2010 by taswar So was having issues as in why does my checkbox doesn’t work in IE when I do And found out that jquery does not bind live “change” events, I was told that it works in 1.4.2 but for some reason I still was not able to get it working. http://taswar.zeytinsoft.com/2010/05/04/jquery-live-change-doesnt-work-in-ie/
http://api.jquery.com/replaceWith/

.replaceWith

Description: Replace each element in the set of matched elements with the provided new content and return the set of elements that was removed. The .replaceWith() method removes content from the DOM and inserts new content in its place with a single call. Consider this DOM structure: The second inner <div> could be replaced with the specified HTML: