I have a problem on how to display images in html table.
Based on the code below, the Image column only display the link of the image and not the image itself. How can I display the actual image into my Image column?
root.on('child_added', function(childSnapshot) {
rootRef10 = childSnapshot.val();
var tr = document.createElement('tr');
tr.appendChild(createCell(imageUrl));
tr.appendChild(createCell(videoUrl));
table.appendChild(tr);
});
function createCell(text) {
var td = document.createElement('td');
td.appendChild(document.createTextNode(text));
return td;
}

createCell()method