jQuery live event on iPad...why doesn't it work? -


I am using jQuery to develop a webpage on the iPad and it seems that the live event of jQuery does not work ... this was the case when I was working with SDK iPad Emulator and now I have to work on the iPad, that's still (I hope this was an emulator mistake). Running the same code on Web Kit builds works fine.

I'm just thinking that someone else is facing this problem? If there is a fix? Or if it's me?

thanks :)

This issue is for some reason Mobile Safari does not attach click events to some DOM elements, so you have to attach them manually.

  $ ('header') live (. 'Click', get_location_input);  

And when you add it later, it works on the ipad

  & lt; Div class = 'header' onclick = '' & gt; Station information & lt; / Div & gt;  

Here is the information where I got my information


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -