document.getElementById("userProfileCheck") is not working in Mozilla Firefox

This is a discussion on "document.getElementById("userProfileCheck") is not working in Mozilla Firefox" within the JavaScript Forum section. This forum, and the thread "document.getElementById("userProfileCheck") is not working in Mozilla Firefox are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jul 20th, 2007, 05:20
New Member
Join Date: Jul 2007
Location: Chennai,India
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs down document.getElementById("userProfileCheck") is not working in Mozilla Firefox

hi..
document.getElementById() is not working in FF

this is my code..

function MasterSelectAll(mas_exp)
{
select=(document.getElementsByTagName('img').item( getTagSelectID("master_expander", "img")).src);
if(view) {
var form = document.forms[0];
alert(document.getElementById("userProfileCheck")) ; //this returns null
document.getElementById("userProfileCheck").checke d=true; //error here
var j=1;
for(var i=0;i<form.elements.length;i++)
{ if(form.elements[i].name!='stepId' && form.elements[i].name!='save'
&& form.elements[i].name!='userProfileId'){
selectAll(form.elements[i].name,"select_expander"+j,mas_exp);
if(j==5)
{
break;
}
j++;
}
}
view = false;
}
}


am getting following error FF :

Error: document.getElementById("userProfileCheck") has no properties


anyone suggest me how to solve this.
bye
Reply With Quote

  #2 (permalink)  
Old Jul 20th, 2007, 05:32
Junior Member
Join Date: Jul 2007
Location: Sydney
Age: 26
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Re: document.getElementById("userProfileCheck") is not working in Mozilla Firefox

I suggest you check the original thread you started. There are people trying to help you there.
Reply With Quote
Reply

Tags
getelementbyid

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
"overflow: hidden" not working on firefox when the div contains flash inside littleshaolin Web Page Design 0 May 21st, 2008 05:27
document.getElementById("tabs") has no properties afmanuk JavaScript Forum 3 Sep 7th, 2007 19:11
document.getElementById is not working in Mozilla Firefox dhineraj JavaScript Forum 3 Jul 20th, 2007 02:31
document.getElementById[objectID].style now working on Mozilla Browser yogeshid JavaScript Forum 1 May 25th, 2007 09:30
window.opener.document["nameForm"].getElementById("someid").value; doesnt work drpompeii JavaScript Forum 0 Feb 17th, 2007 23:09


All times are GMT. The time now is 05:39.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43