Display of html including images in a column
Display of html including images in a column
I am using render successfully to display some html - with buttons, captions, etc. I would like to now be able to display a set of images that are clickable, like so:
'<img id="box" class="shpImg" src="~/Images/Box.png" onclick="getShipment(' + shipment.Shp_CSID + ')"/>
I just cannot seem to get the images to display.
This is how it is being called:
"render": function (data, type, full, meta) {
return getShipmentContent(full,data)
}
Thanks in advance, George
Answers
I would suggest you use a jQuery delegated event listener rather than a DOM0
onclick
event.Allan
Regarding this point, we'd need a link to the page showing the issue to understand why not.
Allan