I have a jQModal window on my site that has content populated with an Ajax call. It works great in all desktop browsers, but it doesn't work on Mobile Safari on the iPhone.
The overlay and the window itself are displayed at the top of the page body, and do not cover the iPhone viewport. If you scroll up, you will see a window and an overlay located just like in any other browser. This is especially problematic because for the Mobile Safari user, when they scroll down and click to pull out the modal window, there is no reaction - the part of the screen with the modal window is completely invisible to the user.
I am sure that this is due to the fact that jqModal uses "position: fixed" in its CSS, which affects iPhone differently. Here is a good blog post describing why: http://doctyper.com/archives/200808/fixed-positioning-on-mobile-safari/
I looked through some of the other libraries for modal windows (such as BlockUI) and they have the same problem in Mobile Safari. Does anyone know how to modify jqModal js / css to fix this? Greetings
source
share