View Poll Results: How many parts in a page you need to auto refresh?

Voters
3. You may not vote on this poll
  • 1

    0 0%
  • 2

    1 33.33%
  • 3

    0 0%
  • 4

    1 33.33%
  • 5

    1 33.33%
  • 6

    0 0%
  • 7

    0 0%
  • 8

    0 0%
  • 9

    0 0%
  • > 9

    0 0%
  1. #11
    Ext User
    Join Date
    Dec 2008
    Posts
    6
    Vote Rating
    0
    ontangian is on a distinguished road

      0  

    Default Yuhu... It's WORKING Now!!!

    Yuhu... It's WORKING Now!!!


    Quote Originally Posted by jratcliff View Post
    My apologies. Again, I didn't test it last night and thus missed a couple of issues. I just tested this now and it works. You just need to change the code to run AFTER the panel has been rendered (oh, and I got the parameters wrong - should be two, with the first the number of seconds and the second, the url)


    So change this:

    Code:
    menuScreenPanel.getUpdater().startAutoRefresh({
        interval:5,
        url: 'doMenuScreenMonitoring.php'
    });
    To this:

    Code:
    menuScreenPanel.on('render', function() {
        menuScreenPanel.getUpdater().startAutoRefresh(5, 'doMenuScreenMonitoring.php');
    });
    I'll go ahead and update my original response in case someone else needs this.
    Hi jratcliff,

    Thank you very much for your help. It's working as you tried it. I am really greatfull for you kindness help.

    I hope God will give you a present for helping me...

    Once again, thanks...

  2. #12
    Sencha - Services Team
    Join Date
    Mar 2007
    Location
    Foristell, MO
    Posts
    1,107
    Vote Rating
    3
    jratcliff is on a distinguished road

      0  

    Default


    Quote Originally Posted by ontangian View Post
    Hi jratcliff,

    Thank you very much for your help. It's working as you tried it. I am really greatfull for you kindness help.

    I hope God will give you a present for helping me...

    Once again, thanks...

    Glad to have helped.

  3. #13
    Ext User
    Join Date
    Jan 2009
    Posts
    61
    Vote Rating
    2
    venu is on a distinguished road

      0  

    Default


    Hi jratcliff,

    I extended the Panel object to write a custom widget. It is displaying the data properly. Then i applied the auto refresh functionality but it is not working.
    Can you help me in solving this problem?

    Here is my code
    ------------------

    Code:
    Example.ux.widget.icare = Ext.extend(Ext.Panel, {
        id        : 'id-panel-icare',
        title    : 'Auto Refresh Example',
        border    : true,
    
        initComponent : function() {
            this.html = 'Loading data.........',
            Example.ux.widget.icare.superclass.initComponent.apply(this, arguments);
        },
        
        onRender : function() {                
            //this.load();   // --this works fine.
            this.getUpdater().startAutoRefresh(60, load, true);
            Example.ux.widget.icare.superclass.onRender.apply(this, arguments);
        },
        
        load: function(config) {
            var config = config || {};
            Ext.apply(config, {
                url:'/Dashboard/status?data=icare',
                success: this.onLoad,
                failure: this.onFailure,
                scope: this
            });
            Ext.Ajax.request(config);
        },
        
        onLoad: function(response, opts) {
            var json = Ext.decode(response.responseText);
            var tpl = new Ext.Template(
                '<p>Pending TR Count: {pendingTRCount}</p>'
            );
            tpl.overwrite(this.body, json[0]);
        },
        
        onFailure: function() {
            Ext.Msg.alert('Fail', 'Error occured while getting iCARE pending records count.');
        }
    });
    
    Ext.reg('icarepanel', Example.ux.widget.icare);

  4. #14
    Sencha User
    Join Date
    Oct 2012
    Location
    Pune,India
    Posts
    3
    Vote Rating
    0
    Abhijit Muke is on a distinguished road

      0  

    Default Panel Refreshing After every 8 Seconds

    Panel Refreshing After every 8 Seconds


    //8 Seconds Interval refresh for Grid - Working
    var interval = setInterval(function() {
    var store = Ext.StoreMgr.lookup('gridId');
    tasksummary_store.reload();
    }, 8000);

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar