ok ho risolto facendo così:
Grazie mille ... ora ho altri problemi, ma riguardano credo .net ... ciao!codice:$(function () { var myJSON = new Array(); $(".loc").each(function (index) { myJSON[index] = {}; myJSON[index].address = $(this).html(); }); $(".dati").each(function (index) { myJSON[index].html = $(this).html(); }); var json = JSON.stringify(myJSON); if (!(json == "")) { $("#agenti").gMap({ markers: myJSON, zoom: 4 }); } });

Rispondi quotando