Config Loading widget

Description

The following code shows how to config Loading widget.

Example


<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'>//<![CDATA[ 
window.onload=function(){<!--  w w  w .  ja  va 2s.c  om-->
$(document).on("click", ".show", function () {
    $.mobile.loading("show");
});
$(document).on("click", ".hide", function () {
    $.mobile.loading("hide");
});
}//]]>  
</script>
<link rel="stylesheet"
  href="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.css" />
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script>
            $(document).on("mobileinit", function() {
                $.mobile.loader.prototype.options.text = "Please wait..Magic is going on!";
                $.mobile.loader.prototype.options.textVisible = true;
                $.mobile.loader.prototype.options.theme = "e";
                $.mobile.loader.prototype.options.html = "";
            });
        </script>
<script
  src="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.js"></script>
</head>
<body>
  <button class="show" data-inline="true" data-icon="gear">Show</button>
  <button class="hide" data-inline="true" data-icon="delete">Hide</button>
</body>
</html>

Click to view the demo





















Home »
  jQuery Mobile »
    Example »




Button
Button Event
Button Icon
Button Text
Checkbox
Collapsible
Date
Dialog
Event
Footer
Form
Header
Icon
Input
Layout
Listview
Listview Divider
Listview Item
Loader
mobile_settings
Navbar
Page
Page Event
Popup
Radio
Select
Slider
Switch
Textarea
Theme