jQuery Loading Overlay

Home/Project/jQuery Loading Overlay
jQuery Loading Overlay 2017-05-17T19:56:38+00:00

Overview

jQuery loading overlay is a simple helper function wrapped as jQuery plugin for displaying loading indicator overlaid to the element where this plugin is initiated. You can download the code form github here:

https://github.com/xsanisty/jquery-loading-overlay

code sample below will clearly describe it

this will create an overlaid element with loading image on the top of #somediv, you can display it, configure it, and hide it

Method

jQuery loading overlay has only two methods, show and hide which is responsible to display or hide the loading overlay. When no method is passed, it will call show method implicitly.

Show

As the method name describe what it does, show method will show loading indicator overlaid to the selected element

Hide

Hide method is used to hide (actually remove it ūüėÄ ) the loading overlay from the selected element.

Configuration

As mentioned above, you can configure how the loading overlay will be displayed. The default configuration is shown as below

You can pass the configuration option when invoking the show method

Styling

For user who want advanced styling to control how the loading indicator is displayed, you can add .xsanisty-loading-overlay to your css

One Comment

  1. Abdullahi October 6, 2014 at 5:07 am - Reply

    A beautiful api, is it possible to extract a number from a checkbox value before calculation.
    for example the value of my checkbox1 is “cmp101/3/first” and checkbox2 is “cmp102/2/first” the problem is i want to sum only the 2 and 3. all assistance are welcome. thanks

Leave A Comment