| hwg-basics archives | May 2000 | new search | results | previous | next |
Re: JavaScript problem...by "Bert Doorn" <bdoorn(at)iinet.net.au> |
|
G'day
> Line 12
> Char 3
> Error 'image' is undefined
> Code 0
Like it says: 'image' is undefined, i.e. the variable does not exist. Image
is a core language object from Javascript 1.1 onwards (i.e. built in) but
Javascript differentiates between Image and image (diferent case)
Change this line:
rslt = new image();
To this line:
rslt = new Image();
Note the capital I. Same goes for 'new Array()' and 'new Date()' (to mention
a couple).
That solved the problem for me. As to why it's stopped working when it did
before, I can only presume that you or some editing program somehow changed it
from Image to image.
HTH
--
Bert Doorn, Web Developer
http://www.bwdzine.com/
http://www.betterwebdesign.com.au/
HTML: hwg-basics mailing list archives, maintained by Webmasters @ IWA