Yes, I read it through. I haven't managed to successfully get it working 
without duplication but I'll keep trying :)

Thanks again.

----- Original Message ----- 
From: "Scott Sauyet" <[EMAIL PROTECTED]>
To: <jquery-en@googlegroups.com>
Sent: Thursday, June 14, 2007 10:10 PM
Subject: [jQuery] Re: Bound function on appended image



Gareth Hughes wrote:
>>      http://docs.jquery.com/Tutorials:AJAX_and_Events
> Many thanks Scott, that's done the trick. I've had to double up on my
> functions (once inside the document.ready and once outside) but that must 
> be
> the way my code is structured.

Did you read the tutorial all the way through?  By the end the examples
either have a single function which is called inside the document.ready
and outside it (by using a context) or have just a single chunk of code
which handles even the dynamically added DOM objects (by using event
bubbling.)  I think either of these techniques would allow you to avoid
this duplication.

Good luck,

   -- Scott


Reply via email to