M
Martin
I have web-based user interface for an industrial automation system
that has some pages that display some activity and data in real time.
I have two distinctly different ways of doing this - both of which
have undesireable aspects.
1: I use AJAX - with the browser requesting a refresh once per second.
Since displayable information can be generated at any moment, I have
to buffer it on the server-side and then I have a time-stamp on each
piece of data so the client can tell if it's already displayed a
particular item. This all works ok but the display in the browser
isn't truely "real-time" - several events will appear on the screen at
the same instant even though they actually occurred at slightly
different times.
2: I have page set up that downloads a dll from the server that
contains a client-side socket that, when the page is loaded, connects
to a socket on the server. I then shove data in true real-time from
the server to the client page where it is displayed. All of the
client/page side activity is controlled by VBScript (and DHTML). The
problem here is that this works only with VBScript- and thus works
only in Internet Explorer.
I like the second approach better so, finally my question:
Does anyone know if there is program available anywhere (perhaps a
Java applet) that provides the same functionality as the DLL I'm
currently using but would have the ability to be manipulated by
Javascript? This would allow true real-time display of the data and
would work in all browsers. FWIW, Javascript is already being used on
all of my interface's pages.
Thanks for any recommendations.
that has some pages that display some activity and data in real time.
I have two distinctly different ways of doing this - both of which
have undesireable aspects.
1: I use AJAX - with the browser requesting a refresh once per second.
Since displayable information can be generated at any moment, I have
to buffer it on the server-side and then I have a time-stamp on each
piece of data so the client can tell if it's already displayed a
particular item. This all works ok but the display in the browser
isn't truely "real-time" - several events will appear on the screen at
the same instant even though they actually occurred at slightly
different times.
2: I have page set up that downloads a dll from the server that
contains a client-side socket that, when the page is loaded, connects
to a socket on the server. I then shove data in true real-time from
the server to the client page where it is displayed. All of the
client/page side activity is controlled by VBScript (and DHTML). The
problem here is that this works only with VBScript- and thus works
only in Internet Explorer.
I like the second approach better so, finally my question:
Does anyone know if there is program available anywhere (perhaps a
Java applet) that provides the same functionality as the DLL I'm
currently using but would have the ability to be manipulated by
Javascript? This would allow true real-time display of the data and
would work in all browsers. FWIW, Javascript is already being used on
all of my interface's pages.
Thanks for any recommendations.