Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript
| Search | Today's Posts | Mark Forums Read
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 21st, 2004, 08:07 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , .
Posts: 347
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Adam H-W
Default document null or not an object

Hi there,

I'm getting this error:

document[...]is null or not an object - line 22

However, I'm not sure why. This is the code where the error is occurring:

    document[thisImg].src = "image_bin/" + thisImg + "_up.gif"

The path to the image_bin is all correct etc.

Any help greatly appreciated.
 
Old April 21st, 2004, 09:03 AM
Friend of Wrox
 
Join Date: Nov 2003
Location: , , .
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Try document.images instead of document.

HTH,

Snib

<><
 
Old April 22nd, 2004, 05:59 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , .
Posts: 347
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Adam H-W
Default

great, thanks




Similar Threads
Thread Thread Starter Forum Replies Last Post
null or not an object crmpicco Classic ASP Basics 0 July 4th, 2005 05:58 AM
null or not a object crmpicco Javascript How-To 5 March 22nd, 2005 10:48 AM
is null or not an object fosterjim Javascript How-To 1 January 24th, 2005 02:11 PM
document.lcoation.href is null or not an object IceXia Javascript How-To 2 November 24th, 2004 04:44 AM
document null or not an object Adam H-W Javascript How-To 2 February 18th, 2004 01:25 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.