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