![]() | ![]() Products ![]() ![]() ![]() ![]() |
Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder General » View Thread |
Messages 1 to 6 of 6 total |
![]() |
Sun, Mar 20 2016 4:07 PM | Permanent Link |
Andreas Blenk | Hello,
if i press F5 (or cmd+r) the web site refreshes correctly but my application restarts? Is this normal behavior or can i handle this refresh-event? I think i don't want the application to restart. In my case: A user is logged in. If i press F5 everything is reseted and the user needs to re-login. Also all forms are going to be destroyed on refresh (F5). Thanks, Andreas |
Mon, Mar 21 2016 3:00 AM | Permanent Link |
R&D team @ Environment Canada | hi Andreas
why are you wanting to refresh the page? if things have changed, you can use a timer to do the update on GUI elements (updating objects, reload of data, or whatever..) we use this here to update data and visuals associated.. works like a charm. the timer is on the 'system' tab of the EWB ide. .. Bruno ///////// Andy23 wrote: Hello, if i press F5 (or cmd+r) the web site refreshes correctly but my application restarts? Is this normal behavior or can i handle this refresh-event? I think i don't want the application to restart. In my case: A user is logged in. If i press F5 everything is reseted and the user needs to re-login. Also all forms are going to be destroyed on refresh (F5). Thanks, Andreas |
Mon, Mar 21 2016 3:08 AM | Permanent Link |
Andreas Blenk | Hello Bruno,
thanks for your reply. I don't want to refresh the page. But properly my users just try to press F5 to refresh. Then the whole page reloads completely. So this is normal behavior? Thanks, Andreas |
Mon, Mar 21 2016 4:35 AM | Permanent Link |
R&D team @ Environment Canada | I'm not an expert but I think that is normal and all browsers would do the same (a forced refresh), and I suspect you will not have any way to override that behavior. But I might be wrong. I'm still not sure why your users want to manually 'refresh' if they are still logged in to the system.
Andy23 wrote: Hello Bruno, thanks for your reply. I don't want to refresh the page. But properly my users just try to press F5 to refresh. Then the whole page reloads completely. So this is normal behavior? Thanks, Andreas |
Mon, Mar 21 2016 4:50 AM | Permanent Link |
Matthew Jones | Bruno Larochelle @ Environment Canada wrote:
> I don't want to refresh the page. But properly my users just try to > press F5 to refresh. Then the whole page reloads completely. So this > is normal behavior? It is normal, yes. EWB makes a "single page application" which means you stay in it all the time. Refresh means start over. http://stackoverflow.com/questions/3527041/prevent-any-form-of-page-refresh-using-jquery-javascript The main thing you might want to do is play with the #page attributes to handle the "back" button. You shouldn't stop them completely, but it helps accidental back's from discaring your application. How to do this has been discussed around here before (I forget the term to search for right now!). -- Matthew Jones |
Tue, Mar 22 2016 10:24 AM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. ![]() | Andy,
<< I don't want to refresh the page. But properly my users just try to press F5 to refresh. Then the whole page reloads completely. So this is normal behavior? >> Absolutely. The user can kill your application just like they can kill any task in Windows, and Refresh is one way of doing so. If you don't want your users to do this, then you'll have to be sure to inform them of the consequences (possibly lost data, etc.) You can also use a TTimer in your application to periodically save data to local storage, if you're concerned about data loss: http://www.elevatesoft.com/manual?action=topics&id=ewb2§ion=using_local_storage Tim Young Elevate Software www.elevatesoft.com |
This web page was last updated on Sunday, March 26, 2023 at 04:50 AM | Privacy Policy![]() © 2023 Elevate Software, Inc. All Rights Reserved Questions or comments ? ![]() |