View Single Post
Old 08-29-07, 06:48 PM   #9
Registered User
Join Date: Jul 2005
Posts: 3,606
Default Re: Detecting Bad Links

Originally Posted by fivefeet8
I've figured a way to do it, but I'm not sure if it will work in all instances. I've created a simple javascript that creates and image object. The source points to an image on the server I need to check for connection. Once that's done, I check if the image returned has a height larger than zero. Seems to work so far.

I also welcome other suggestions or a better approach.
That was exactly what I was going to suggest, you were running into the DOM security model which prevents one parent domain from accessing content outside of it's own domain or a child domain of the parent domain.
evilghost is offline   Reply With Quote