An example how seamless WinCC OA is able to communicate with the Browser-Widget and JavaScript.
https://www.youtube.com/watch?v=FZemswLh7s4
https://www.youtube.com/watch?v=lecMy6sZsU4
CTRL-Example:
main() { pushScript("document.getElementById('mytext').value = '"+TEXT_FIELD1.text+"';"); }
JavaScript-Example:
function doQueryConnect() { oa.dpConnectQuery("SELECT '_original.._value', '_original.._stime' FROM 'PerfTest_1.Float'", false, function (data) { MyGauge.setValue(0, data["table"][1][1]); MyChart.drawChart(data["table"][1][2], data["table"][1][1]); }); oa.dpConnectQuery("SELECT '_original.._value' FROM 'Test_1.Float'", true, function (data) { MyGauge.setValue(1, data["table"][1][1]); }); }