1. #1
    Ext User
    Join Date
    Mar 2009
    Posts
    73
    Vote Rating
    1
    poppabear is on a distinguished road

      1  

    Exclamation How to reload/refresh/update viewport ?

    How to reload/refresh/update viewport ?


    Straight forward i need to like refresh, reload or update viewport. Is there away to do this ?

    If not i can get away with a page refresh if you know how to do that as well ?

    Thanks in advance,
    Yes i know, I am a newbie with ExtJS

  2. #2
    Ext User
    Join Date
    Mar 2009
    Posts
    73
    Vote Rating
    1
    poppabear is on a distinguished road

      0  

    Default


    Anybody, i thought this would have been a simple one :P
    Yes i know, I am a newbie with ExtJS

  3. #3
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,499
    Vote Rating
    47
    Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    What do you mean?

  4. #4
    Ext User
    Join Date
    Mar 2009
    Posts
    73
    Vote Rating
    1
    poppabear is on a distinguished road

      0  

    Default


    I mean, is there away to like "re-render" viewport itself ? or just perform a page refresh. I'm using cookies for my login i have everything working great. The issue is that viewport is rendered before the cookies are set which returns null cookies .... so i need to after login to "refresh" viewport to get the values of the cookies.

    Hope this help,
    Yes i know, I am a newbie with ExtJS

  5. #5
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,499
    Vote Rating
    47
    Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    Well how was it rendered in the first place?

    I don't know how you created your stuff. This all makes no sense at all.

    This is just HTML, you don't refresh it, it is just an HTML document.

  6. #6
    Ext User
    Join Date
    Mar 2009
    Posts
    73
    Vote Rating
    1
    poppabear is on a distinguished road

      0  

    Default


    I guess i see your point, i will see what i can do about creating the cookies before viewport is rendered.

    I thank you for your time,
    Yes i know, I am a newbie with ExtJS

  7. #7
    Ext User
    Join Date
    Mar 2009
    Posts
    73
    Vote Rating
    1
    poppabear is on a distinguished road

      0  

    Default


    I should be able to create what i need using the beforerender event correct ? My question is now, how do i mask the body ?
    Yes i know, I am a newbie with ExtJS

  8. #8
    Ext User
    Join Date
    Mar 2009
    Posts
    73
    Vote Rating
    1
    poppabear is on a distinguished road

      0  

    Default


    Thanks for all the help Animal, I decided to just perform a page reload after the cookie was set.

    Example:
    PHP Code:
    success:function(formaction){ 
                                    
    Ext.Msg.alert('Status''Login Successful! The application will now reload with your data.', function(btntext){
                                        if (
    btn == 'ok'){
                                            
    obj Ext.util.JSON.decode(action.response.responseText);
                                            
    createCookie('username',obj.info.user,0);
                                            
    createCookie('level',obj.info.level,0);
                                            
    winLogin.hide();
                                            
    parent.location="javascript:location.reload()" 
    Thanks again,
    Yes i know, I am a newbie with ExtJS

  9. #9
    Sencha User
    Join Date
    Mar 2012
    Location
    Norway
    Posts
    23
    Vote Rating
    1
    _piotr is on a distinguished road

      0  

    Default


    I have the same problem. I have an app with user authentication. At the topbar I have an username and personalized buttons on the home page.
    When I log me in (after successfully logging out) with another user, so I am getting the same screen like before logging out.

    So how could I re-render those elements/whole viewport?

    Hope I've described it enough clear.

Thread Participants: 2

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