Never been to TextSnippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)

About this user

Winton Welsh http://stu.dicio.us

« Newer Snippets
Older Snippets »
1 total  XML / RSS feed 

Ajax Responders (Indicators)

// code for indicator registration

registers: {
        onCreate: function() {
                if(Ajax.activeRequestCount>0)
                        new Effect.Appear('indicate');
        },
        onComplete: function() {
                if(Ajax.activeRequestCount==0)
                        new Effect.Fade('indicate', {queue: 'end'});
        }
}

Ajax.Responders.register(Note.registers);
« Newer Snippets
Older Snippets »
1 total  XML / RSS feed