JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old October 11th, 2006, 10:08 AM
cwilliams cwilliams is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2006
Posts: 3 cwilliams User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 52 m 45 sec
Reputation Power: 0
Smile Error--Help

When my page loads I get this error

Line 202
Char 1
Error 'document.getElementById(....)" is null or not an object
Code 0
URL http//tellashopper.com/index.php?option=com_frontpage&itemid=1



I need some assistance on correcting this error..



Reply With Quote
  #2  
Old October 11th, 2006, 11:21 AM
Mittineague's Avatar
Mittineague Mittineague is offline
Contributing User
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jul 2005
Location: West Springfield, Massachusetts
Posts: 536 Mittineague User rank is Private First Class (20 - 50 Reputation Level)Mittineague User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Week 1 Day 1 h 11 m
Reputation Power: 3
error message

Without seeing more than just the error message I can't say exactly what is causing the error, but.
Is there a typo? Does an element with whatever string is in the parentheses exist at the time the script runs?

Reply With Quote
  #3  
Old October 11th, 2006, 12:04 PM
cwilliams cwilliams is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2006
Posts: 3 cwilliams User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 52 m 45 sec
Reputation Power: 0
I can send you a copy of the source code..would that help?

Quote:
Originally Posted by Mittineague
Without seeing more than just the error message I can't say exactly what is causing the error, but.
Is there a typo? Does an element with whatever string is in the parentheses exist at the time the script runs?



send you a copy of the source code..would that help?

Reply With Quote
  #4  
Old October 11th, 2006, 04:31 PM
colton22's Avatar
colton22 colton22 is offline
\ ^_^ / - Moderator
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2006
Location: near chicago, Illinois
Posts: 471 colton22 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 1 h 9 m 44 sec
Reputation Power: 3
Send a message via AIM to colton22 Send a message via MSN to colton22 Send a message via Yahoo to colton22
please either attach a copy by converting it to .txt or reqeust my email address by PM and i will try to help you.

i have a couple questions that i need to ask to help...

1) What browser are you trying to set this up to work with?
2) Did you want this to be able to be used in All Browsers possible?
3) What are you trying to accomplish?

colton22

Last edited by colton22 : October 17th, 2006 at 02:33 PM. Reason: spelling check

Reply With Quote
  #5  
Old October 14th, 2006, 11:32 AM
Mittineague's Avatar
Mittineague Mittineague is offline
Contributing User
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jul 2005
Location: West Springfield, Massachusetts
Posts: 536 Mittineague User rank is Private First Class (20 - 50 Reputation Level)Mittineague User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Week 1 Day 1 h 11 m
Reputation Power: 3
null or not an object

Some browsers are case sensitive
document.getElementById('advert'); will not get <div id="Advert">
Also, if the script runs as the page loads, the element may not have been loaded into the DOM yet so the script can't get it. This can be solved by putting the script in a function and running it "onload" after the DOM has finished loading.
Comments on this post
colton22 agrees: you could use: document.onload, Mittineague Did you see the code yet?

Reply With Quote
  #6  
Old October 17th, 2006, 12:11 PM
Nilpo's Avatar
Nilpo Nilpo is offline
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2006
Location: Near Dev Articles Headquarters
Posts: 122 Nilpo User rank is Private First Class (20 - 50 Reputation Level)Nilpo User rank is Private First Class (20 - 50 Reputation Level)  Folding Points: 171032 Folding Title: Super Ultimate Folder - Level 1Folding Points: 171032 Folding Title: Super Ultimate Folder - Level 1Folding Points: 171032 Folding Title: Super Ultimate Folder - Level 1Folding Points: 171032 Folding Title: Super Ultimate Folder - Level 1Folding Points: 171032 Folding Title: Super Ultimate Folder - Level 1Folding Points: 171032 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 11 h 37 m 59 sec
Reputation Power: 2
Send a message via AIM to Nilpo Send a message via MSN to Nilpo Send a message via Yahoo to Nilpo Send a message via Google Talk to Nilpo Send a message via Skype to Nilpo
MySpace
This error can be generated if you are trying to pass the getElementById() method to a variable that hasn't been defined also.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJavaScript Development > Error--Help


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Iron Speed




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway