mobile.loaderClass

mobile.loaderClass_image

Mobile Loader is a class component which loads asynchronously loads JavaScript and Cascading Styles Sheets files on a page. The loader API provides configuration for resource, JavaScript path, Cascading Styles Sheets path and preferred theme. The control can auto detect locale or you can manually set preferred locale and regional settings. After all the required scripts are loaded and ready to use, a callback function is called which allows your scripts to reliably know when the resources are available on the page.

The following code snippet demonstrates how to initialize the Mobile Loader control.

Click here for more information on how to get started using this API. For details on how to reference the required scripts for the Mobile Loader control read Using Infragistics Loader.

Code Sample

<!doctype html>
<html>
<head>
        <!-- jQuery Core -->
        <script src="js/jquery.js" type="text/javascript"></script>
        <!-- jQuery Mobile -->
        <script src="js/jquery.mobile.js" type="text/javascript"></script>
        <!-- Moderznizr -->
        <script src="js/modernizr.js" type="text/javascript"></script>
        <!-- Infragistics Loader Script -->
        <script src="js/infragistics.loader.js" type="text/javascript"></script>   
        <!-- Infragistics Loader Initialization -->
        <script type="text/javascript">
            $.ig.loader({
                scriptPath: "js/",
                cssPath: "css/",
                resources: "igmRating"
            });
        </script>
    </head>
    <body>
        <div id="igRating1"
            data-role="igrating"
            data-value="2">
        </div>
    </body>
</html>

Related Samples

Related Topics

Dependencies

Copyright © 1996 - 2025 Infragistics, Inc. All rights reserved.