[jQuery] Re: live event doesn't work after append()

2009-07-05 Thread Sanam
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 ad

[jQuery] Re: live event doesn't work after append()

2009-06-30 Thread Anton
> confusing test. You are reloading page into itself. Yes, what's wrong? > Clicking on links keeps working so not sure how this demonstrates how live() > not working I'm using firefox 3 (not tested in other browsers). So try do the following steps in firefox: 1. Open http://bestyle.org/jquery-li

[jQuery] Re: live event doesn't work after append()

2009-06-30 Thread Charlie
confusing test. You are reloading page into itself. Clicking on links keeps working so not sure how this demonstrates how live() not working the bug ticket code from your original post is ridiculous and with a little tweaking works fine also, no wonder  it got invalidated Anton wrote:

[jQuery] Re: live event doesn't work after append()

2009-06-30 Thread Anton
> Can you give us an online sample of it? Ok, I made a test-case: http://bestyle.org/jquery-live-test/ This is small html page, generated in php. Source code in http://bestyle.org/jquery-live-test/index.txt When you first time clicking the link, it will reload content via ajax. Second click is not

[jQuery] Re: live event doesn't work after append()

2009-06-30 Thread Anton
bind() is less convenient then live(), it's like 'custom way', but, yes, I'll use bind() too if I not find good solution with live(). On 30 июн, 12:38, waseem sabjee wrote: > I would suggest using.bind() >  in my experience .live() is not very IE friendly > > On Tue, Jun 30, 2009 at 10:36 AM, An

[jQuery] Re: live event doesn't work after append()

2009-06-30 Thread waseem sabjee
I would suggest using.bind() in my experience .live() is not very IE friendly On Tue, Jun 30, 2009 at 10:36 AM, Anton wrote: > > Mean Mike, I did wrote you answer but it was not posted for some > reason. > That selector means that it will select all with no onclick > attribute associated. > So

[jQuery] Re: live event doesn't work after append()

2009-06-30 Thread Anton
Mean Mike, I did wrote you answer but it was not posted for some reason. That selector means that it will select all with no onclick attribute associated. So I try to 'ajaxify' all links on a page with my own handler. This handler will load page via $.ajax, extract part of it by specified id and

[jQuery] Re: live event doesn't work after append()

2009-06-29 Thread Mean Mike
that looks cool, Ricardo. Could one of you explain the selector syntax to me ? On Jun 29, 4:59 pm, Ricardo wrote: > Should work, see this example:http://jquery.nodnod.net/cases/444 > > Is your page in quirks mode? Can you give us an online sample of it? > > On Jun 29, 7:08 am, Anton wrote: > >

[jQuery] Re: live event doesn't work after append()

2009-06-29 Thread Ricardo
Should work, see this example: http://jquery.nodnod.net/cases/444 Is your page in quirks mode? Can you give us an online sample of it? On Jun 29, 7:08 am, Anton wrote: > I found the bug ticket with similar problem:http://dev.jquery.com/ticket/4762, > but it was closed as invalid. The problem st

[jQuery] Re: live event doesn't work after append()

2009-06-29 Thread Mean Mike
I'm having a hard time reading your code i"m not sure what your trying to do but this is how I always have used 'live' [code] $(".remove").live("click", function() { $(this).parent().hide("blind",{},500); $(this).parent().remove(); }); [/code] '.remove' is my class se