03.01.2017, 21:31
Tried to fix the polling function, no success. Can you please take at look at this:
I tried altering the path as described a few posts above, did not work, see my code snippets above. I also tried adding /cgi-bin/ at the beginning of the altered path, also no success. I'd really like to fix this that my site is up and running again and switch to websocket as soon as the beta firmware is final. Thank you!
Code:
poll = function() {
$.ajax({
//url: 'http://10.0.x.xx/cgi-bin/scada-vis/general/objects-update.cgi',
url: 'http://10.0.x.xx/scada-main/objects/update/objects-update.cgi',
type: 'GET',
data: { upd: upd },
error: check,
success: check,
timeout: 60 * 1000
});
};
Code:
function read() {
$.ajax({
// url: host + '/cgi-bin/scada-vis/general/request.cgi?_module=objects&_action=main',
url: host + '/scada-main/objects/update/request.cgi?_module=objects&_action=main',
type: 'POST',
dataType: 'json',
data: { updatetime: time, skiptags: 1 },
error: poll,
success: update,
timeout: 15 * 1000
});
}
I tried altering the path as described a few posts above, did not work, see my code snippets above. I also tried adding /cgi-bin/ at the beginning of the altered path, also no success. I'd really like to fix this that my site is up and running again and switch to websocket as soon as the beta firmware is final. Thank you!