Example:
Place this object right before link indira.js script
<script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script> <script type="text/javascript"> var indiraJsConfig = { loader: '<i class="icon-cog icon-2x icon-spin"></i>', defaultLoaderContainer: 'super_logo', defaultOutputElementId: 'work_area', defaultPostCaching: false, }; </script> <script src="http://youydomain.com/scripts/indira.min.js" type="text/javascript"></script> <script src="http://youydomain.com/scripts/vendor/jquery.history.js" type="text/javascript"></script>
Property | Default value | Description |
---|---|---|
loader
|
Loading... | Element or text shown while AJAX request is loading | You can use any kind of plain text or HTML tags |
defaultLoaderContainer
|
false
|
ID of element where loader value is placed while AJAX request is loading | You may specify any element's ID from DOM
|
defaultOutputElementId
|
body
|
Output element's ID | This is default element where AJAX request response is placed |
defaultPostCaching
|
false
|
By default all POST-method request is not cacheable | You may change this property on your project needs |