tags:

views:

79

answers:

2

I'm using jQuery to develop webapps on the iPad and it seems the jQuery live event doesn't work... This was the case when I was working with the SDK iPad emulator and now that I have the iPad to work on, its still the same (I was hoping it was an emulator fault). Running the same code on a web kit build works fine.

I'm just wondering if anyone else is having this problem? If there is a fix? or if it's me? Hoping someone can help as my code is becoming really bloated having to rebind clicks etc after ajax calls.

Thanks :)

A: 

.live() does work. However on the ipad you should use tapstart, etc instead of mousedown. See if that makes a difference.

You should give more information on what you're binding exactly.

Mark
A: 

I had to use the jQuery .delegate event which seems to do the trick binding click to an element after an ajax call.

Dave