Welcome Guest Search | Active Topics | Sign In | Register

imageZoom: handling non existing image url Options
Posted: Thursday, July 14, 2011 4:54:07 AM
Rank: Newbie
Groups: Member

Joined: 7/14/2011
Posts: 2
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 on

Quote:
<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
Posted: Thursday, July 14, 2011 7:58:28 AM
Rank: Newbie
Groups: Member

Joined: 7/14/2011
Posts: 2
ZoomPanelStyle works perfectly for me when the URL of the image is correct.

The question is how to handle cases when this URL is not correct. The problem here is when the user clicks on the "red cross"-image shown by Internet Explorer. In this case the browser becomes non responsive, for example buttons on the page don't work anymore.

Do you understand what I mean?


eo_support
Posted: Thursday, July 14, 2011 10:49:44 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

Thanks for posting in the forum. This does appear to be a problem. We will change our code and provide you a new build as soon as possible (There is no easy way to avoid that situation with the current build).

Thanks!
eo_support
Posted: Thursday, July 14, 2011 4:00:30 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

We have posted a new build that should address this issue. The new build would allow you to close "Loading..." or the background shade (if you have set BackShadeColor) to cancel the zoom out. Please see your private message for the download location.

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.