Enlaces
var enllac = function (descripcio, adreca, tipus) {
this.descripcio = descripcio;
this.adreca = adreca;
this.tipus = tipus;
}
arrEnllacos = [];
function cargaEnllacos() {
arrAbreviacions.length = 0;
$.ajax({
url: "http://interaccionesvih.com:12419/api/enllacos/",
type: "GET",
dataType: "jsonp",
success: function (data) {
$.each(data, function (index, item) {
var enll = new enllac(item.DESCRIPCIO_ENLLAC, item.ADRECA, item.NOM_TIPUS_ENLLAC);
arrEnllacos.push(enll);
})
}
});
}
----------------------------------