Results 1 to 4 of 4

Thread: [solved]Global Loading mask for Ajax Transactions

  1. #1
    Sencha User Lobos's Avatar
    Join Date
    Oct 2007
    Location
    Sao Paulo, Brazil
    Posts
    461

    Default [solved]Global Loading mask for Ajax Transactions

    Hi there,

    does anyone know of a plugin or override that you can set to make all ajax transactions, eg Ext.Ajax.request as well as form / panel loads fire some kind of event? I would like to have a little loading spinner up in the corner that activates while the ajax request is in progress (for all ajax transactions) and I was wondering what the best way to go about this would be.

    Thanks for any advice you can give.

    -Lobos

  2. #2
    Ext JS Premium Member
    Join Date
    May 2007
    Posts
    698

    Default

    Why not add a Class level listener using the static Observable.observeClass method.

  3. #3

  4. #4
    Sencha User Lobos's Avatar
    Join Date
    Oct 2007
    Location
    Sao Paulo, Brazil
    Posts
    461

    Default

    Quote Originally Posted by csoon1 View Post
    Thanks for that, this is the concept here:

    PHP Code:
    Ext.Ajax.on('beforerequest'this.showSpinnerthis);
    Ext.Ajax.on('requestcomplete'this.hideSpinnerthis);
    Ext.Ajax.on('requestexception'this.hideSpinnerthis); 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •