• Fabrik4.5.3 for J!5.3.0 and J!4.2+is out

    You must update from Fabrik4.5.1 if you are running Joomla!5.3.0

    See Announcements

Masking areas whilst ajax updates

  • Views Views: 7,466
  • Last updated Last updated:
  • The fabrik loader object allows you to mask of sections of the page whilst they are being updated via an Ajax request.

    The loader object is found here:

    Fabrik.loader

    The 'start' method takes two properties, the DOM node's id that you want to place the loader over, and the loading message.

    to overlay on a div id="hideme":

    HTML:
    <div id="hideme">this will be masked out</div>

    You would use this code:
    Fabrik.loader.start('hideme', 'loading ....... ');

    To then remove the loader you use:

    Fabrik.loader.stop('hideme');


    to show a loading overlay that covers the whole page

    Fabrik.loader.start(null, 'loading msg ');
Back
Top