Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Error : getElementById() is null
Old 07-06-2008, 03:38 AM Error : getElementById() is null
Experienced Talker

Posts: 34
Trades: 0
Need solution ,for a unknown error.
Its not causing any problem with the functionality or anything else,but FireBug in mozilla , constantly showing this error,when ever the script is invoked.
Confirmed it,that getElementById() is not null.

Error : getElementById() is null or not not object
autumn is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-06-2008, 05:00 AM Re: Error : getElementById() is null
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,519
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
check and double check the caps of "getElementById" on the line where the error shows.
The next time I hold the shift key down a little too long when coding javascript, won't be the first and it definitely won't be the last.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 07-08-2008, 08:46 AM Re: Error : getElementById() is null
Experienced Talker

Posts: 34
Trades: 0
That didnt resolve it, but thanks for advice.
autumn is offline
Reply With Quote
View Public Profile
 
Old 07-08-2008, 10:36 AM Re: Error : getElementById() is null
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,519
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Ok
Do we get to see the code or better still a URL?
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 07-09-2008, 07:41 AM Re: Error : getElementById() is null
Experienced Talker

Posts: 34
Trades: 0
Code is



function fill(thisValue,Id) {

/*var objDiv=document.getElementById('autoSuggestionsLis t');
objDiv.scrollTop = objDiv.scrollHeight;
*/

document.getElementById(Id).value = thisValue;

setTimeout("$('#suggestions').hide();", 50);
}
</script>


Error : document.getElementById(Id) has no properties

Line : document.getElementById(Id).value = thisValue;
autumn is offline
Reply With Quote
View Public Profile
 
Old 07-09-2008, 07:51 AM Re: Error : getElementById() is null
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,519
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
and where do you pass the value of Id from??
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 07-10-2008, 06:21 AM Re: Error : getElementById() is null
Experienced Talker

Posts: 34
Trades: 0
Id value is been generated dynamicaly, and sent into the function fill() along with this.value
autumn is offline
Reply With Quote
View Public Profile
 
Old 07-10-2008, 06:27 AM Re: Error : getElementById() is null
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,519
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
maybe you should try using this.id instead!
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 07-10-2008, 06:59 AM Re: Error : getElementById() is null
Experienced Talker

Posts: 34
Trades: 0
cant do this , as id is beening generated from someplace and sent to value generating function and fill function is beening called from there , sending both of the values.
autumn is offline
Reply With Quote
View Public Profile
 
Old 07-10-2008, 07:50 AM Re: Error : getElementById() is null
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,519
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
just give us a url so we can actually see what is going off.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 07-10-2008, 11:11 AM Re: Error : getElementById() is null
Experienced Talker

Posts: 34
Trades: 0
alrite, the error is cleared. My fault calling the id as string between commas like value. Its fine now.

Thanks for the guidence.
autumn is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Error : getElementById() is null
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.33953 seconds with 12 queries