20.01.2017, 17:36
Maybe somebody has some advice,
when I write custom javascripts and when I use jQuery to find objects everytime I has in the console a lot of founded objects and I think this is not caused by too wide filter but this is something else. It looks like the objects from scada-vis are also in trends and schedulers.
For examle this 2 scripts for find a object with class '.sekator' generates the same result in console.log() (see screenshot).
Script 1:
Script 2:
Is this result from console.log() is normal or can I something improve?
when I write custom javascripts and when I use jQuery to find objects everytime I has in the console a lot of founded objects and I think this is not caused by too wide filter but this is something else. It looks like the objects from scada-vis are also in trends and schedulers.
For examle this 2 scripts for find a object with class '.sekator' generates the same result in console.log() (see screenshot).
Script 1:
Code:
$(function(){
var sekator = $('#plan-1').find('.sekator')
console.log(sekator)
});
Script 2:
Code:
$(function(){
var sekator = $('.sekator')
console.log(sekator)
});
Is this result from console.log() is normal or can I something improve?