Charmed Quark Systems, Ltd. - Support Forums and Community
Slider issue on WebRiva - Printable Version

+- Charmed Quark Systems, Ltd. - Support Forums and Community (https://www.charmedquark.com/vb_forums)
+-- Forum: General Discussion (https://www.charmedquark.com/vb_forums/forumdisplay.php?fid=3)
+--- Forum: CQC Support (https://www.charmedquark.com/vb_forums/forumdisplay.php?fid=9)
+--- Thread: Slider issue on WebRiva (/showthread.php?tid=10862)



Slider issue on WebRiva - NishanF - 07-03-2019

Dean,

I was developing some autogen templates, and noticed the the volume slider page would freeze if the volume slider was manipulated too quickly.

I then setup a basic template with a slider and a text box to display the field (linked to a variable driver field).
That works fine in the interface viewer.
In the WebRiva version if you manipulate the slider too quickly, the page will freeze. It reloads again fine, but the behavior is reproducible each time.

I'm using both a desktop version of Chrome as well as chrome on my samsung phone.

thx,
Nishan


RE: Slider issue on WebRiva - Dean Roddey - 07-03-2019

You aren't trying to update a field as you slide it are you? That generally doesn't even work well with the regular IV.


RE: Slider issue on WebRiva - NishanF - 07-03-2019

No, the slider just updates the static text box on the template with the current value.
The slider is linked to the variable driver field and that field get updated automatically.
My template is basically the same as the auto-generated volume pop-up...the error happens on the auto-generated pop-up too.
I just wanted to simplify the template to just the slider and a text box to eliminate other possibilities.


RE: Slider issue on WebRiva - Dean Roddey - 07-03-2019

How long is it? It may just be that it's long enough that it's sending too many events too quickly. If it doesn't happen when you move it slowly, then that is likely it. It might require some throttling of some sort.


RE: Slider issue on WebRiva - NishanF - 07-03-2019

That's probably it. Initially I just did a brisk flick to the left on the volume bar to turn down the volume and then it froze. I've attached the template I'm using now...it's just a two widget template.

Also, now just reloading the page doesn't seem to always restablish the session, and the webserver has to be restarted on the master server. I included some console out from the browser as well with the error message:

Websocket.js:149 WebSocket connection to 'ws://192.168.0.254/Websock/CQSL/WebRIVA.html?user=Admin&pw=removed' failed: Error during WebSocket handshake: Unexpected response code: 500
connectToSrv @ Websocket.js:149
(anonymous) @ Websocket.js:70
Websocket.js:149 WebSocket connection to 'ws://192.168.0.254/Websock/CQSL/WebRIVA.html?user=Admin&pw=removed' failed: Error during WebSocket handshake: Unexpected response code: 500
connectToSrv @ Websocket.js:149
reconnHandler @ Websocket.js:234