Javascript issue

P

Paul

I needed a way to show the user of my page that something was happening, so
what I came up with was to change an image I already had on the page when
they clicked on the SUBMIT button.

document.getElementById("image2").src =
http://sta2wd08/emplinkage/pleasewait.bmp

This works pretty well a lot of the time, but sometimes instead of getting
the graphic I get the icon which shows the X that the graphic cannot be
found.

Any suggestions?
Thanks
Paul
 
G

Garett Rogers

Maybe try copying that image to your local project directory... then use the
following code instead:

document.getElementById("image2").src='/images/pleasewait.bmp';

Another thing you might want to do if this doesnt fix anything, is preload
the image...

Garett

http://www.aimx.com
There's no place like 127.0.0.1
 
K

Kevin Spencer

You might try using a JPG or IGF. BMPs are not universally supported by all
browsers.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 

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

Members online

Forum statistics

Threads
473,756
Messages
2,569,533
Members
45,007
Latest member
OrderFitnessKetoCapsules

Latest Threads

Top