Hi,
I have been trying to display an image inside a Kendo Tooltip in MVC.
The image src is from web.
When I deploy my app in Azure and try to view the tooltip. It do not display the image, instead I get a <broken image> icon displayed.
Requirement:
I am displaying list of Image files in a table in a page.
The table has three columns:
Document Name | Date of Upload | Uploader name
The "Document Name" column will display the name of the documents and these names are visible in the form of hyperlink that has the URL of the document location. (The documents are from SharePoint Online).
My requirement is to on hover I must display a tooltip that will display the image file. (which resembles like a preview)
I am using the below code for kendo tooltip
$("td.documentNo").kendoTooltip({filter: "a.hasTooltip",
position: "right",
width: 500,
height: 500,
content: function (e) {
var URL = e.target.context.href;
return $("<img class='image-preview' height='500' width='500'>").attr("src", URL);
}
});
Here "td.documentNo" :- .documentNo is a class name given to identify the column.
Here "a.hasTooltip" :- .hasTooltip is a class name given to identify the Anchor tag
This on testing in my local works absolutely fine. But when I upload this in Azure Cloud the code doesn't work. It display the tooltip but the image is not displayed.
Am I doing anything wrong. Please guide me.
Regards,
Niroj.