I am trying to create a dialog that shows text and an image using the dojo widget, when I pass the image details through a innerhtmlpopup window it appears neither for text nor for the image.
It works great for text details, but image details are not displayed. I have included my code below:
HTML:
<div data-dojo-type="dijit.Dialog" title="SUB Details"
style="width: 500px; height: 150px; display:none;
id="subDetailDialog"
data-dojo-id="kycDetailDialog">
<br>
<table border ='0px' align='center' width='400' class='detailedInfo' id='detailedInfo' >
<tr class='even'>
<td style="width:40%"><strong>First Name</strong></td><td><strong>:</strong></td>
<td id='firstNameRow' style="width:40%"></td>
</tr>
<tr class='odd'>
<td><strong>Date of birth</strong></td><td><strong>:</strong></td>
<td id='dobRow'></td>
</tr>
<tr class='even'>
<td><strong>Subscriber Image</strong></td><td><strong>:</strong></td>
<td id='imgRow'></td>
</tr>
</table>
</div>
JavaScript:
dojo.byId("firstNameRow").innerHTML = data.firstName;
dojo.byId("dobRow").innerHTML = data.dob;
dojo.byId("imgRow").innerHTML = '<img src="/images/123456789_.jpg" border="0" width="32" height="32"/>';
subDetailDialog.show();
source
share