Div does not show Image

M

Martin

Hi
I have a DIV Absolute positioned with a AJAX style gif inside. The image
sometimes fails to show up. How can I fix this ?
I set the div sty;e to visible and it appears but no image??

<div id="proc1" style="visibility: hidden;Left: 316px; position: absolute;
top: 256px; width: 328px; background-color: #FFFACD; border-right: gainsboro
1px solid; border-top: gainsboro 1px solid; border-left: gainsboro 1px solid;
border-bottom: gainsboro 1px solid; z-index: 2;" align="center"
atomicselection="true">
<br />
<span style="font-size: 8pt; color: #666699; font-family:
Verdana">Please wait...</span><br />
<br /><div id="progress" style="z-index: 10;">
<img src="/images/wait.gif" style="z-index: 11;" /></div>
<br />

<br />
<br />
</div>
 
B

bruce barker

if you are calling the code before a postback, than this is normal behavior.
if the browser is posting back, it will not downlod an image nor run an
animated gif.

you can switch to an ajax postback via an update panel to get the image to
apear. if its a static image, pre-caching will make it appear more often.

-- bruce (sqlwork.com)
 
M

Munna

Hi
I have a DIV Absolute positioned with a AJAX style gif inside. The image
sometimes fails to show up. How can I fix this ?
I set the div sty;e to visible and it appears but no image??

<div id="proc1" style="visibility: hidden;Left: 316px; position: absolute;
top: 256px; width: 328px; background-color: #FFFACD; border-right: gainsboro
1px solid; border-top: gainsboro 1px solid; border-left: gainsboro 1px solid;
border-bottom: gainsboro 1px solid; z-index: 2;" align="center"
atomicselection="true">
<br />
<span style="font-size: 8pt; color: #666699; font-family:
Verdana">Please wait...</span><br />
<br /><div id="progress" style="z-index: 10;">
<img src="/images/wait.gif" style="z-index: 11;" /></div>
<br />

<br />
<br />
</div>


Hi

preload the image...

here is a simple article that shows image preloading

http://articles.techrepublic.com.com/5100-10878_11-5214317.html

Best of luck

Munna
www.munna.shatkotha.com
www.munna.shatkotha.com/blog
www.shatkotha.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top