Saturday, April 02, 2016

progress bar fun with

Hi All,
For fun, I decided to make a simple progress bar demo using  Below is a short video demonstration using bootstrap's progress bar being updated by the server.  Nice thing about websockets, there's no polling involved, so you get near real-time updates as to the progress of the server-side ssjs listener.  To get this demo working on your server install from OpenNTF (see websocket-setup.pdf in the download), then just load the .nsf on your server and launch the application from your browser (download from here).

(the video shows the browser on the left, and the Domino console on the right)


Csaba Kiss said...

I had to change the from "rhino/pbar.nsf/ssjs.pbar.listener" to "rhino./pbar.nsf/ssjs.pbar.listener" in order to make it work.
Also these lines needs modification with the websocket user name and password:
websocketBean.addSocketEventListener("/pbar.nsf","*","/pbar.nsf/ssjs.pbar.listener", "websocketUser", "password");

Mark Ambler said...

Hi Csaba,
Latest release no longer has a period in the RHINO_PREFIX constant. Note, you could set the target uri (first parameter) to whatever you wanted, and invoke it that way (e.g. websocketBean.addSocketEventListener("/pbar.nsf/doprogress".... then set the to value to the same).