[ 2 posts ]

Dmitri Snytkine

  • Username: lampcms.com
  • Joined: Thu Aug 27, 2009 6:04 am
  • Posts: 94
  • Location: Poconos, PA
  • Twitter: snytkine
  • GitHub: snytkine
  • Gists: snytkine
  • Offline
  • Profile

How to use Loading mask?

Post Posted: Mon Jan 31, 2011 3:16 pm
+0-
lets say I have a div with id="stuff"

I want to cover it with loading mask while ajax request is in progress and remove the mask when request is complete

How would I do that?

The Y.one('#mystuff")..plug(
Y.LoadingMask,
{
background: '#000',
strings: {
loading: 'Loading'
}
}
).render();

Does not work. What would be a good function to just add loading mask to the div and then remove it when request is done.

This is probably the most common use case for the loading mask, yet I cannot find an example for that.

Dennis Ju

  • Username: dejuknow
  • Joined: Tue Mar 01, 2011 1:00 pm
  • Posts: 1
  • Offline
  • Profile

Re: How to use Loading mask?

Post Posted: Tue Mar 01, 2011 1:17 pm
+0-
Try:

Code:
Y.one('#mystuff").plug(
   Y.LoadingMask,
   {
      background: '#000',
      strings: {
         loading: 'Loading'
      }
   }
).loadingmask.show();
  [ 2 posts ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum