Book Section
-----
TY JavaScript 3rd Ed.
Teach Yourself JS 1.5
Teach Yourself DHTML
Teach Yourself JS 1.3
LLWW: JavaScript

General Section
-----
Discussion Forum
Articles / Tips
JavaScript Links
About the Author
Privacy Policy
Contact Me



Other Sites
-----
Website Workshop
JavaScript Weblog

JavaScript Workshop Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Hints on, Error: Object Does Not Exist

 
Post new topic   Reply to topic    JSWorkshop Forum Index -> Articles
View previous topic :: View next topic  
Author Message
phil karras
Senior Member
Senior Member


Joined: 15 Jul 2002
Posts: 1707
Location: MD

PostPosted: Mon Apr 07, 2003 11:02 am    Post subject: Hints on, Error: Object Does Not Exist Reply with quote

There are really only two reasons for getting this error,

1. The object really doesn't exist. This could be because you're calling it one thing and the browser is calling it something else. The Browser is ALWAYS right, sort of like the customer. You are writing this code for the browser (the customer) and it expects things in a defined way, either you give it in those terms or you get this error.

2. There was an earlier error that cause the browser to miss, skip, ignore, or otherwise not be able to create the object in question.

For #2 if you're using NS you simply start up the JS debugger and look for and clear up all previous errors and that should take care of the problem. In IE you'll need to have the debugger set to come up for all JS errors. I believe Michael has an article on how to do that.

See: Hints: Turning on Error Messages
http://jsworkshop.com/bb/viewtopic.php?t=143

and

Hint article on: Object Expected Error
http://jsworkshop.com/bb/viewtopic.php?p=2788
_________________
Phil K
Circle Software Consulting
Test website: http://cs.yrex.com/
Guidelines for Posting: http://jsworkshop.com/posting.html
IHBAAA = It Has Been Asked And Answered
KISS: http://jsworkshop.com/bb/viewtopic.php?t=508
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    JSWorkshop Forum Index -> Articles All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
(c) 1997-2002 Starling Technologies and Michael Moncur. Portions (c) Sams Publishing.