Hi ,in a template based widget, I have a table in a template and the table’s body will be constructed
In my widget using domConstruct.
The problem is that The click event of “a” element does not work. Actually nothing happens when I click on it and the logging does not show any error or massage.( the other click events in My template work fine) the problem only is with this event that is made using domConstruct programmatically.please help me.
As I told everything work fine, the template widget work fine .the only problem is the below click event that does not work.
Thanks in advance
for (var i = 0; i < result.features.length; i++) {
domConstruct.place(lang.replace('<tr><td><a class="zoomto" data-dojo-attach- event="ondijitclick:zoomto">{t0}</a></td><td>{t1}</td><td>{t2}</td><td>{t3}</td></tr>',{
t0:i + 1,
t1:result.features.attributes.rent,
t2:result.features.attributes.OBJECTID,
t3:result.features.attributes.ACCT
}), this.rowNode);
}
…..
zoomto: function () {
console.log("zoomto is clicked ");
},