Let’s go .live() with jQueryAdd to My Brief

Vince Scordino | 7/05/2010

So your client has requested some wacky jQuery to jazz up their feature page, and, well, there’s already a decent amount of JavaScript that isn’t really agreeing with Internet Explorer’s rendering engine right? In comes jQuery .live() to the rescue!

Ok, stay with me here. Instead of having all click events bound to the DOM as we generally do with jQuery, we can now bind a handler using the .live() method. 

What this means is, if we have 1000’s of selectors, only 1 event is bound to the DOM, not 1000’s. Since the handler is only called once the trigger is made, elements can be added at any time. Thanks jQuery, another impressive addition to accompany the wonderful world of AJAX.

For more information, visit: http://api.jquery.com/live/

tags: Web Development

Interested in learning more?

Wiliam is a leading supplier of web solutions and can provide expert advice to assist your business or organisation online.

Make enquiry   Request quotation

Comments

Share this page

Print this page Email this page to a friend Bookmark and Share

No Brief added yet.

My Brief results-driven approach emphasises a commitment to our clients needs through strategic analysis and best-practice.

Add to My Brief

Click on this icon to save item into My Brief. Retrieve, email and print

Drag & Drop

Drag & drop any iten with this icon into My Brief. Retrieve, email and print

Search Blogs