User posts AP_User
27 February 2018 15:13
That worked perfectly! Thank you so much!!!
26 February 2018 17:31
I still haven't been able to find a solution. I wonder if it's because the JSCallback function is in the JS file, while the variables and addeventlistener's are in the <script> section of my HTML file.
25 February 2018 21:29
Hi there,

I'm currently trying to create HTML buttons that update the JSCallback function that controls a Switch Node, which in turn moves the camera to a desired location. When the app is first loaded, the click / response is instantaneous, however, when I click another button there's an incredible amount of latency; I'd say between 3-5 seconds. I'm not sure if it's the result of my newbie coding, or my Node setup.

If someone could look at the project I've attached to this post it'd be incredibly helpful! Thanks for your time

24 February 2018 23:22
*I just discovered the issue*

I moved the function I was calling from the linked JavaScript file over to the HTML page and it fixed everything
24 February 2018 19:37
Hi There,

I've run into a bit of a snag trying to work between Blend4Web's Logic Nodes and Javascript. I've managed to link the 2 successfully using the JSCallback node and define a variable within Javascript that triggers a Switch, however, I'm having trouble changing/updating that variable with an OnClick event. I'm very new to coding, so I can't tell if it's the result of my node setup or something within Javascript.

I'll attach examples to this post:

Thanks in advance if you can help me!