I have a problem with a web application and Internet Explorer.
I have a web page that has a WebTimers set with a frequency of one second .
We currently use three different PCs for testing all equipped with
Windows Seven 64 bits.
If I access the page with the timer using Chrome and Mozilla
everything is working properly .
With Internet Explorer I get different behaviors.
On the three machines I have three different version of Explorer
PC “A” with Internet Explorer 8 not working
PC “B” with Internet Explorer 10 working
Pc "C " with Internet Explorer 11 not working
The error message that is presented is as follows:
Michel,
I’m doing some tests to see if I can use a timer on the client side.
In fact, removing the control WebTimer and using a timer instantiated from code in the Open event of the web page the problem no longer occurs.
However, another problem presents itself to me. The method that I have placed into the Action Timer fails to call a method in the section Session
Greg,
I’m using the 2013 version R 4.1
the page contains one button and one label.
A server side Timer? (Class Timer is server side; class WebTimer is client triggered.) Timer.Action will not have a Session context set when fired. You have to identify the Session you need to work with and setup the context.
I put this code in the Open event of web page:
tmr_UpdateDay = New Timer
tmr_UpdateDay.Period = 1000
tmr_UpdateDay.Mode = Timer.ModeMultiple
AddHandler tmr_UpdateDay.Action, AddressOf TimerPageUpdate
I add the method TimerPageUpdate in webpage:
//TimerPageUpdate
//With this code I can access to the method declare in session
Dim objTest As WebSession = Session
Dim objSession As WebSession = App.SessionForControl(Self)
Dim objContext As New WebSessionContext(objSession)
objTest = Session
// code for screen update
Then I add tmr_UpdateDay property declared as Timer
so the timer works and I can access the session data