-
2 Apr 2009 6:18 PM #1
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
-
3 Apr 2009 5:43 AM #2
Anybody, i thought this would have been a simple one :P
Yes i know, I am a newbie with ExtJS
-
3 Apr 2009 5:48 AM #3
What do you mean?
Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
-
3 Apr 2009 5:51 AM #4
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
-
3 Apr 2009 6:09 AM #5
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.Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
-
3 Apr 2009 6:12 AM #6
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
-
3 Apr 2009 6:16 AM #7
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
-
3 Apr 2009 6:45 AM #8
Thanks for all the help Animal, I decided to just perform a page reload after the cookie was set.
Example:
Thanks again,PHP Code:success:function(form, action){
Ext.Msg.alert('Status', 'Login Successful! The application will now reload with your data.', function(btn, text){
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()"
Yes i know, I am a newbie with ExtJS
-
22 Aug 2012 1:26 AM #9
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.


Reply With Quote