- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
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
- Marcas:
- HTML5
- Intel® XDK
Link copiado
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
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.
- Subscrever fonte RSS
- Marcar tópico como novo
- Marcar tópico como lido
- Flutuar este Tópico para o utilizador atual
- Marcador
- Subscrever
- Página amigável para impressora