开发者

Avoid Page REfresh Problem using Extjs 3.2

开发者 https://www.devze.com 2022-12-25 14:10 出处:网络
I am working on extjs based application , i need control the page refresh when user press f5 multiple times, i am getting script error when user done this.

I am working on extjs based application , i need control the page refresh when user press f5 multiple times, i am getting script error when user done this.

I need to solve this issue by sending 2nd refresh request after 1st refresh one is completed.

Is there any way to achieve the above solution using extjs..

Thanks in advan开发者_StackOverflow社区ce


Yes it is possible through asynchronous method calls, you will have to know when the users press F5 and then intercept the even then use a custom function to refresh the page. Extjs has this inbuilt http://dev.sencha.com/deploy/dev/docs/output/Function.html.


I don't believe (to my knowledge) there's any way to prevent a refresh.

0

精彩评论

暂无评论...
验证码 换一张
取 消