Results 1 to 9 of 9

Thread: How to reload/refresh/update viewport ?

  1. #1
    Ext User
    Join Date
    Mar 2009
    Posts
    73
    Vote Rating
    1
      1  

    Exclamation 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
      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
    Bédoin/Redwood City
    Posts
    30,626
    Vote Rating
    56
      0  

    Default

    What do you mean?
    Longtime Sencha geek. Outspoken advocate of pure Javascript Views. Posts my own opinions.

  4. #4
    Ext User
    Join Date
    Mar 2009
    Posts
    73
    Vote Rating
    1
      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
    Bédoin/Redwood City
    Posts
    30,626
    Vote Rating
    56
      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.
    Longtime Sencha geek. Outspoken advocate of pure Javascript Views. Posts my own opinions.

  6. #6
    Ext User
    Join Date
    Mar 2009
    Posts
    73
    Vote Rating
    1
      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
      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
      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
      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.

Posting Permissions

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