I’m an experienced server side application developer, but don’t have much experience on the client side, so bear with me.
Here’s what I’d like to do: Enter some URL into a browser and pull down an HTML page from the server. Inside the HTML there’s a link to an image on another server. Now my problem is that this image may exist and be fetchable, or it’s possible that the server is not running, and thus that image cannot be fetched.
So what I need to do is this: if the image is fetched, everything is great and just continue processing. If it cannot be fetched, then all of the text on the page should change from what it normally says to information to the user to exlain what happened and what he should do.
My question is how to do this. I believe that this can be done with JavaScript, and if I’m given a few pointers to things to look at I can probably fill the details in myself.
Thanks for any help.
Sander