|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
JavaScript onError help
Hello again my friends, I once again come seeking help in the strange real known as JavaScript.
Using the onError field of an <img> tag (or any other way for that matter), how can I keep that annoying red x from showing? if I do onError="this.src=''" it unfortuneately has the sideeffect of infinitely calling onError(), so what can I do? |
|
#2
|
|||
|
|||
|
RE: JavaScript onError help
not sure about javascript.. but if you're trying to determine whether or not an image exists, and is readable on other servers you could use php's getimagesize() which returns false..
|
|
#3
|
|||
|
|||
|
RE: JavaScript onError help
PS it said through google to do it like so:
Code:
<IMG NAME="imgFaulty" SRC="dodgy.jpg onError="null"> |
|
#4
|
|||
|
|||
|
RE: JavaScript onError help
thanks alot, I didn't even think of trying PHP to do it :-p
silly me |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > JavaScript onError help |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|