Hi
following problem:
I’m going to use different type of widgets on a page. They shall get new values from a backend with supplies the data by a string identifier + the new value.
during the initialisation I save the object references in an array:
(simplified)
myelements[nameIdentifier]=$('#gaugeContainer').jqxGauge({...});
When then new data comes in, I can update the objects with
$(myelements[nameIdentifier]).jqxGauge('value',newValue);
or equivalent
$(myelements[nameIdentifier])["jqxGauge"]('value',newValue);
But my big problem is, that the constructor name which I have to use (“jqxGauge”) is Widget depending, so all this works only for one type of widget 🙁
And I couldn’t find any hint so far how else I could create this call without this class name dependency to make it work for all jqWidget classes (means at least the ones which support to set their value).
Does anybody has an idea how this could work or is it not possible by design?
many thanks in advance
regards
Steffen