i think i am having the similar problem as yours.
I have used live to make clickable the dynamically added elements as
below.

 $(".addressDiv span").live("mouseover", function(){
   //clickable function here......
   ------------------------
   });

But the problem is that once the dynamically added elements are
activated by the live event, it now stores the attributes of the
elements. Now even after the elements' attributes are changed the live
event doesnot refresh its stored attributes and instead takes the
previous ones. Is this live() event's error or I am using it in  a
wrong way. Can anyone help me in this?

Sanam





On Jun 29, 3:08 pm, Anton <astatu...@gmail.com> wrote:
> I found the bug ticket with similar problem:http://dev.jquery.com/ticket/4762,
> but it was closed as invalid. The problem still exists for me.
>
> I have the followingliveevent:
> $("a:not([onclick])").live('click', ajaxLinkHandler);
>
> It's not applying to content loaded via $.ajax(...).responseXML which
> I used to append in the following way:
> // withing ajaxLinkHandler
> var content = $(loadedDocument).find("[component='"+ id +"']");
> $(this.contentContainer).empty().append(content);

Reply via email to