Software Archive
Read-only legacy content
17060 Discussions

Dynamic update to AppFramework JustGage widget?

Mark_E_2
Beginner
646 Views

Hi,

I have tried various incantations in trying to dynamically update an instance of the JustGage widget that I have included in my Intel XDK project.  I just can't seem to make it work.  Based upon the comments in the gauges.js file, I should be able to do this:

var gauge = Gauges.getById('fuel');
gauge.refresh(50);

However, in the debugger of the Emulate tab I get the following error on that second statement:

Uncaught TypeError: undefined is not a function

Any ideas?

Thanks in advance,

-Mark

0 Kudos
1 Reply
PaulF_IntelCorp
Employee
646 Views

Have you checked the value of the "guage" variable being returned to confirm that you actually received an object back from the Guages call? It's possible you have an ID that doesn't work or there is something wrong with the call. Sorry, I'm not intimately familiar with that widget.

0 Kudos
Reply