I am developing a mobile solution with a combination of jQuery.mobile and asp.net webforms.
For postbacks of my asp.net controls to work properly I have to disable ajax at the top of the page, like this:
<script>
$.mobile.ajaxEnabled = false;
</script>
But when ajax is disabled like this, other functions doesn't seem to work. I can't call dialogs/popups from jQuery document ready
For example:
$(document).ready(function () {
$('#myPopup').popup('open');
});
This will just cause the popup to show in less than a second, then it dissapears. Also when I register a clientscript from codebehind to trigger the popup when a serverside button is clicked, the popup just flashes, then dissapears. But when I disable ajax at the top of the page, the popup calls works fine.
Any ideas how to get around these issues?