Torna al Thread
this.getData = function (index) {
$.ajax({
type: 'POST',
contentType: "application/json; charset=utf-8",
/* url del web service*/
url: "http://188.64.91.100:8002/Service1.asmx/Service1",
/* la prima richiesta da inviare al webservice serve per discriminare e inviare la richiesta
* del numero dei canali, le etichette e le unità di misura
*/
data:"{'sIPserver':'100.100.100.7','iIndexRequest':'"+index+"'}",
dataType: "json",
success: me.onDataReceived,
error: me.onDataError,
});