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

Posts: 22
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
 
When You Register, These Ads Go Away!
Old 07-06-2008, 04:00 AM Re: Error : getElementById() is null
chrishirst's Avatar
Super Moderator

Posts: 13,608
Location: Blackpool. UK
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!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 07-08-2008, 07:46 AM Re: Error : getElementById() is null
Average Talker

Posts: 22
That didnt resolve it, but thanks for advice.
autumn is offline
Reply With Quote
View Public Profile
 
Old 07-08-2008, 09:36 AM Re: Error : getElementById() is null
chrishirst's Avatar
Super Moderator

Posts: 13,608
Location: Blackpool. UK
Ok
Do we get to see the code or better still a URL?
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 07-09-2008, 06:41 AM Re: Error : getElementById() is null
Average Talker

Posts: 22
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, 06:51 AM Re: Error : getElementById() is null
chrishirst's Avatar
Super Moderator

Posts: 13,608
Location: Blackpool. UK
and where do you pass the value of Id from??
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 07-10-2008, 05:21 AM Re: Error : getElementById() is null
Average Talker

Posts: 22
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, 05:27 AM Re: Error : getElementById() is null
chrishirst's Avatar
Super Moderator

Posts: 13,608
Location: Blackpool. UK
maybe you should try using this.id instead!
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 07-10-2008, 05:59 AM Re: Error : getElementById() is null
Average Talker

Posts: 22
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, 06:50 AM Re: Error : getElementById() is null
chrishirst's Avatar
Super Moderator

Posts: 13,608
Location: Blackpool. UK
just give us a url so we can actually see what is going off.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 07-10-2008, 10:11 AM Re: Error : getElementById() is null
Average Talker

Posts: 22
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

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
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.15292 seconds with 12 queries