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 <waseemsab...@gmail.com> wrote: > I would suggest using.bind() > in my experience .live() is not very IE friendly > > On Tue, Jun 30, 2009 at 10:36 AM, Anton <astatu...@gmail.com> wrote: > > > Mean Mike, I did wrote you answer but it was not posted for some > > reason. > > That selector means that it will select all <a> 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 then replace existed part with newly loaded one. > > > > Can you give us an online sample of it? > > I can't yet demonstrate it yet because it's on my internal server, but > > I'll try to make a test-case version. > > > > Is your page in quirks mode? > > Maybe, I don't know exactly how to determine it. > > > > Should work, see this example:http://jquery.nodnod.net/cases/444 > > This example is not using $.ajax(...).responseXML, so, yes, it's > > works. I tried to serialize loaded document to xml before calling > > append() and it was working too, but this way is very inefficient and > > not always working correctly. But when I using raw responseXML then > > live() begin behave just like bind().