Refresh Main Page

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
billcross
Posts: 30
Joined: Thu Apr 07, 2016 3:01 am

Refresh Main Page

Post by billcross »

I have an application that is one web page with multiple panels that are displayed when selected by the user navigating through the app. When the app is transitioning from panel to panel I am setting the web page caption to indicate that the transition is occurring (some panels take a few seconds to build). In Firefox and Chrome the caption change happens immediately but in internet explorer the change is not displayed. If I add an alert right after the caption change it is shown in IE (this was for testing only, I won't be leaving the alert in).

Is there a way to force a refresh of the web page so that the caption change will show immediately ?
User avatar
Stewart Marshall
Posts: 417
Joined: Thu Nov 05, 2015 5:25 pm

Re: Refresh Main Page

Post by Stewart Marshall »

The short answer is no. JavaScript is a single thread environment. While it's busy doing work, the browser will do as it sees fit.

I'm a tiny bit concerned by the "some panels take a few seconds to build" comment though. What's happening that it takes so long to show a panel?

Regards
Stewart Marshall

Independent IT Consultant
www.marshallfloyd.com.au
Post Reply