Showing posts with label gif. Show all posts
Showing posts with label gif. Show all posts

Wednesday, March 28, 2012

UpdateProgress Renders Differently in IE7

I am using an update progress control which contains an animated gif and then some text below. The style on the DIV creates a box around it. It renders fine in IE6 but IE7 the Please Wait...shows up outside the box...any suggestions? Here is the code and css style:

<asp:UpdateProgress ID="UpdateProgress1" runat="server">
<ProgressTemplate>
<Div class="wdeProgressIndicator">
<img src="http://pics.10026.com/?src=images/progressbar.gif" alt="Please Wait..." />
Please Wait...
</Div>
</ProgressTemplate>
</asp:UpdateProgress>

background-color: #ffffff;
margin: auto;
height: 10px;
width: 300px;
position: absolute;
left: 50%;
top: 40%;
margin-left: -150px;
margin-top: -5px;
border-right: #5d7b9d thin solid;
border-top: #5d7b9d thin solid;
border-left: #5d7b9d thin solid;
border-bottom: #5d7b9d thin solid;
padding-right: 5px;
padding-left: 5px;
padding-bottom: 5px;
padding-top: 10px;

If i do the following it works fine, so there has to be more html in the page, that is manipulating something. In any case, why not make the image a background-image on the div with the css, and rmeove the image tag all together, so the image is just part of the div anyway.

<html>
<style>
.wdeProgressIndicator{
background-color: #ffffff;
margin: auto;
height: 10px;
width: 300px;
position: absolute;
left: 50%;
top: 40%;
margin-left: -150px;
margin-top: -5px;
border-right: #5d7b9d thin solid;
border-top: #5d7b9d thin solid;
border-left: #5d7b9d thin solid;
border-bottom: #5d7b9d thin solid;
padding-right: 5px;
padding-left: 5px;
padding-bottom: 5px;
padding-top: 10px;
}
</style>

<body>
<Div class="wdeProgressIndicator">
<img src="http://pics.10026.com/?src=images/progressbar.gif" alt="Please Wait..." />
Please Wait...
</Div>
</body>
</html>


Good suggestion..thanks. That seems to work for now.

UpdateProgress...animated GIF just stops...any ideas?

Since this post (http://forums.asp.net/thread/1469416.aspx) shows as resolved, I've decided to open a new post since I am having a problem with it. My animated GIF just stops. Has anyone ever had this issue? Ever been resolved?

Thanks!

Hi brenda

What do you mean by stops, does it not animate or does is not display at all? Did you try doing this?

<atlas:UpdateProgress ID="progress1" runat="server">
<ProgressTemplate>
<div class="progress">
<img src="http://pics.10026.com/?src=indicator.gif" />
Please Wait...
</div>
</ProgressTemplate>
</atlas:UpdateProgress>

Well this really works if you have your indicator.gif to be animated. Try this out and tell me if what I've understood from your problem is correct.

Thanks


This is my code I have so far, but the animated GIF just freezes. Is this inevitable because the page is rendering?

<

divstyle="float: right; color: #6870A4; font-family: Verdana, Tahoma, Arial; font-size: 11px;">
<asp:UpdateProgressID="UpdateProgress1"runat="server"DynamicLayout="true"DisplayAfter="0">
<ProgressTemplate>
<table>
<tr>
<td>
Loading Property -- Please Wait </td><td>
<imgstyle="padding-right: 10px;"src="../../images/ajax-loader.gif"alt="loading"/></td>
</tr>
</table>
</ProgressTemplate>
</asp:UpdateProgress>
</div>
If your code is causing the page to load, the .gif will stop animating. The UpdateProgess control is designed to be used in parallel with an UpdatePanel. In this scenario the page updates without the page actually loading.