This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Listen to bus on website
#14
Tried to fix the polling function, no success. Can you please take at look at this:

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!
Reply


Messages In This Thread
Listen to bus on website - by RSV4 - 23.12.2016, 17:45
RE: Listen to bus on website - by RSV4 - 23.12.2016, 18:38
RE: Listen to bus on website - by admin - 24.12.2016, 15:05
RE: Listen to bus on website - by RSV4 - 27.12.2016, 11:09
RE: Listen to bus on website - by admin - 28.12.2016, 11:32
RE: Listen to bus on website - by ceyhanc - 28.12.2016, 12:29
RE: Listen to bus on website - by admin - 03.01.2017, 11:26
RE: Listen to bus on website - by ceyhanc - 03.01.2017, 13:51
RE: Listen to bus on website - by RSV4 - 03.01.2017, 14:51
RE: Listen to bus on website - by admin - 03.01.2017, 15:48
RE: Listen to bus on website - by RSV4 - 03.01.2017, 16:13
RE: Listen to bus on website - by RSV4 - 03.01.2017, 21:31
RE: Listen to bus on website - by admin - 04.01.2017, 07:24
RE: Listen to bus on website - by admin - 04.01.2017, 09:01
RE: Listen to bus on website - by RSV4 - 04.01.2017, 20:21
RE: Listen to bus on website - by admin - 05.01.2017, 10:57
RE: Listen to bus on website - by RSV4 - 05.01.2017, 11:10
RE: Listen to bus on website - by admin - 05.01.2017, 11:24
RE: Listen to bus on website - by RSV4 - 05.01.2017, 11:51
RE: Listen to bus on website - by RSV4 - 08.01.2017, 09:38
RE: Listen to bus on website - by admin - 08.01.2017, 11:02
RE: Listen to bus on website - by RSV4 - 08.01.2017, 21:08
RE: Listen to bus on website - by admin - 02.10.2017, 09:51
RE: Listen to bus on website - by Fahd - 08.09.2023, 12:37
RE: Listen to bus on website - by admin - 08.09.2023, 12:38
RE: Listen to bus on website - by Fahd - 08.09.2023, 12:48

Forum Jump: