Advertisement

04.26.2008 at 01:26PM PDT, ID: 23356216
[x]
Attachment Details

HTML image loading display while PHP computes the image

Asked by willsherwood in Cascading Style Sheets (CSS), Hypertext Markup Language (HTML), PHP Scripting Language

I have the situation where the following HTML code "calls" a PHP script to prepare an image for display:

echo "<img src=image.php lowsrc='image-loading.gif'>";
echo "<br>Caption for above image<br>";

When executed, the various GD library calls take 3-4 seconds to compute the resulting image and the new caption is shown and then the browser re-adjusts when the execution completes and the image is displayed properly

What are the options to try to get a temporary image or text to show to displaythat IMAGE IS LOADING
(even though "loading" is a misnomer, i realize).

I tried LOWSRC but nothing displays because i think the resulting image  *downloads*  quickly enough.
Is there a CSS option to display a div and then have the image overwrite it somehow?
... or other options?

thanks
Start Free Trial
 
Loading Advertisement...
 
[+][-]04.26.2008 at 01:38PM PDT, ID: 21446774

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Cascading Style Sheets (CSS), Hypertext Markup Language (HTML), PHP Scripting Language
Sign Up Now!
Solution Provided By: ali_kayahan
Participating Experts: 1
Solution Grade: A
 
 
[+][-]04.26.2008 at 01:46PM PDT, ID: 21446796

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628