1. #1
    Ext User
    Join Date
    Oct 2008
    Posts
    12
    Vote Rating
    0
    Eisert is on a distinguished road

      0  

    Default Auto refresing multiple DIV

    Auto refresing multiple DIV


    Hello,

    I am new to the EXT JS framework and have an issue I am hoping that someone out there can assist me with.

    What I am trying to do is load and then auto update two div tags on a web page.

    I have this working using the Ext.util.TaskRunner, however, when it does the refresh it removes the information on the screen, shows the updating text and then will refresh the div with the updated content.

    Is there a way to make the update silent so that it does not blank the div, show the updating text, and then update the div content?

    I have this working using adobe spry but would like to move away from spry.

    Code:
    
    
    Ext.onReady(function(){
                         
    var msg = Ext.get('msg');
            msg.load({
                url: 'test.php' // <-- change if necessary
                //params: 'name=' + Ext.get('name').dom.value,
                
            });
            msg.show();
            
            var msg = Ext.get('msg2');
            msg.load({
                url: 'test2.php' // <-- change if necessary
                //params: 'name=' + Ext.get('name').dom.value,
                
            });
            msg.show();
    
    
    
    
    var task = {
        run: function(){
        var msg = Ext.get('msg');
         msg.load({
                url: 'test.php' // <-- change if necessary
                //params: 'name=' + Ext.get('name').dom.value,
                
            });
            msg.show();
        var msg = Ext.get('msg2');
            msg.load({
                url: 'test2.php' // <-- change if necessary
                //params: 'name=' + Ext.get('name').dom.value,
                
            });
            msg.show();
        },
        interval: 10000 //1 second
    }
    var runner = new Ext.util.TaskRunner();
    runner.start(task);
    
    
        
    });

  2. #2
    jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,353
    Vote Rating
    79
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    pass showLoadIndicator : false to the load arguments.

  3. #3
    Ext User
    Join Date
    Oct 2008
    Posts
    12
    Vote Rating
    0
    Eisert is on a distinguished road

      0  

    Default


    Excellent,

    Thank you very much that did it!

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi