Hi,
I've tested eo:ImageZoom, and have a special scenario.
eo:ImageZoom has the attributes BigImageUrl and SmallImageUrl. These attributes should contain a valid URL. But if the URL doesn't exist, the image is shown as a "red cross" in Internet Explorer 9. In this case, if the user clicks on this non-existing-image symbol, the browser is blocked and the user has to load the web page again.
Question: is there a possibility to handle scenarios when BigImageUrl and SmallImageUrl don't contain a valid URL? I can't see that eo:ImageZoom has an attribute for such scenario.
Relevant code I've tested onQuote:<script type="text/javascript" language="javascript">
var iz;
function zoomOutFunction(s) {
iz = s;
document.getElementById(iz + '_zp').onmouseout = function () { eo_GetObject(iz).zoomOut(); return false; }
}
</script>
<!-- more code here -->
<asp:GridView ID="GridView1" ...>
<!-- more code here -->
<Columns>
<asp:TemplateField SortExpression="pict_path">
<ItemTemplate>
<div onmousedown='zoomOutFunction("<%#((GridViewRow)Container).FindControl("ImageZoom1").ClientID%>");'>
<eo:ImageZoom ID="ImageZoom1" runat="server" BigImageUrl='<%# Eval("somePath") %>'
PositionX="Relative" PositionY="Relative" SmallImageUrl='<%# Eval("somePath") %>'
CssClass="cssClass_1"'>
<ZoomPanelStyle CssClass="cssClass_2"></ZoomPanelStyle>
</eo:ImageZoom>
</div>
</ItemTemplate>
<HeaderStyle Width="100px" />
</asp:TemplateField>
Thank you in advance!
Ana