// <Init> map.graphics.enableMouseEvents(); dojo.connect(map.graphics, "onClick", function(evt) { map.infoWindow.setContent("<a href='#' onclick='getDataResults(evt.graphic.attributes.Id)'>Get Data Results</a>"); // Assumes id is on the graphic somewhere }); // </Init> function getDataResults(id) { $.get('/GetSomeResults/' + id, function (content) { document.getElementById('resultsGrid').innerHTML = content; } ); }
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.