Show page loading alert dialog
Description
The following code shows how to show page loading alert dialog.
Example
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
src='http://code.jquery.com/jquery-1.6.3.js'></script>
<link rel="stylesheet" type="text/css"
href="http://code.jquery.com/mobile/1.0b3/jquery.mobile-1.0b3.min.css">
<script type='text/javascript'
src="http://code.jquery.com/mobile/1.0b3/jquery.mobile-1.0b3.min.js"></script>
<script type='text/javascript'>//<![CDATA[
$(window).load(function(){<!--from w w w . j a va 2 s .co m-->
$(document).ready(function() {
$.mobile.loadingMessage = "calculating payment schedule...";
$('#start').click(function() {
$.mobile.pageLoading();
$.mobile.showPageLoadingMsg();
});
$('#finish').click(function() {
$.mobile.pageLoading(true);
$.mobile.hidePageLoadingMsg();
});
});
});//]]>
</script>
</head>
<body>
<div data-role="page">
<input type="button" id="start" value="Start Load" /> <input
type="button" id="finish" value="Finish Load" />
</div>
</body>
</html>