Display of html including images in a column

Display of html including images in a column

GeorgeHelmkeGeorgeHelmke Posts: 44Questions: 16Answers: 0

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

  • allanallan Posts: 63,230Questions: 1Answers: 10,417 Site admin

    I would suggest you use a jQuery delegated event listener rather than a DOM0 onclick event.

    Allan

  • allanallan Posts: 63,230Questions: 1Answers: 10,417 Site admin

    I just cannot seem to get the images to display.

    Regarding this point, we'd need a link to the page showing the issue to understand why not.

    Allan

This discussion has been closed.