Show loading image and message
Description
The following code shows how to show loading image and message.
Example
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
src='http://code.jquery.com/jquery-1.9.1.js'></script>
<script type="text/javascript"
src="http://code.jquery.com/mobile/1.3.0-beta.1/jquery.mobile-1.3.0-beta.1.js"></script>
<link rel="stylesheet" type="text/css"
href="http://code.jquery.com/mobile/1.3.0-beta.1/jquery.mobile-1.3.0-beta.1.css">
<script type='text/javascript'>//<![CDATA[
$(window).load(function(){<!--from ww w . j a v a 2 s . co m-->
$(document).ready(function(){
$.mobile.loading( 'show', {
text: 'foo',
textVisible: true,
theme: 'z',
html: "<span class='ui-bar ui-overlay-c ui-corner-all'><img src='http://placehold.it/30x30' /><h2>loading...</h2></span>"
});
});
});//]]>
</script>
</head>
<body>
<div data-role="page">
<div data-role="header">
<h1>header</h1>
</div>
</div>
</body>
</html>