The answer to this question is, in fact, on that page;
http://docs.jquery.com/ Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_Ajax_r equest.3F

The problem is that the question can be asked in a million different ways. It's hard for someone new to all of this with a limited JS vocabulary and a tenuous grasp of some of the basics to know that question A is actually the same as question Y.

I suspect this is a common problem in online technology-oriented communities (although I wouldn't know from experience, not ever having been part of one before jQuery).


--Karl
_________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com



On Jul 27, 2007, at 8:06 AM, Dan G. Switzer, II wrote:


Some of these questions that get asked over and over on the list should
really be on the jQuery FAQ:

http://docs.jquery.com/Frequently_Asked_Questions

-Dan


-----Original Message-----
From: jquery-en@googlegroups.com [mailto:jquery- [EMAIL PROTECTED] On
Behalf Of David Duymelinck
Sent: Friday, July 27, 2007 4:22 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Attach pre-defined events to loaded dom elements?


I think this is what you need :
http://www.learningjquery.com/2006/09/sacrificial-lambda


-- David

Phillip B Oldham schreef:
Hi all

I have a document with some links with a certain class. When loaded,
some events are attached to these links.
I'm then using $().load() to grab a HTML fragment and append it to the
DOM. Inside this HTML fragment are more links with aforementioned
class.

Is there a way I can globally attach the relevant events to the newly
loaded dom elements without being specific? I'm trying to move this
code into a plugin.





Reply via email to