What's not working? (what have you tried?)
Thanks for the response. Should have included a few things that had not worked. First, the popup template that is creating the html element: popupTemplate = new esri.dijit.PopupTemplate({
title: "{building_name}",
//description: "<h4>{building_name}</h4><hr/>{Short_Desc}",
description: "{Short_Desc}"+"</br><div id='expandoPopLink' data-dojo-type='dijit.form.Button'></div>",
mediaInfos: [{
"type": "image",
"value": {
"sourceURL": "{image_path}",
"linkURL": "{image_path}"
}
}]
});
Note the the element has also been tested as an empty <div> (no dijit.form.Button), and also as a <span> with a class .expandoPopLink.Next, the event handlers that have been tried, also note that I did not try all these at once....expandoPopLink = document.getElementById("expandoPopLink");
expandoPopLink = dojo.byId('expandoPopLink');
expandoPopLink.click = function() {
alert("turkey");
}
dojo.connect(".expandoPopLink", "onClick", function() {
alert("this works");
});
expandoPopLink = dojo.query(".expandoPopLink")[0];
expandoPopLink = document.getElementById("expandoPop");
console.log(expandoPopLink);
dojo.connect(expandoPopLink, "onClick", function() {
alert("turkey");
});
expandoPopLink.click = function() {
alert("turkey");
}
dojo.connect(dijit.byId("expandoPopLink"), "onClick", function() {
console.log("button in popup clicked");
alert("turkey");
});
I've been told by another source that it's DOM methods only within the popup. I'll be testing but I look forward to your thoughts.Thanks again,- d