Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: style.visibility Error


Message #1 by "kostas lagos" <klag@i...> on Wed, 19 Feb 2003 07:00:28
Thank you all,

I think now it works ok. I changed the variable definition to objTd and 
the document.all check

Kostas Lagos 

> Hello everybody,

> Im getting an error 'style is null or not an object' from a line in the 
c> ode below, any help will be appreciated..this code is triggered by 
a> n 'onClick' event of a button.The values passed are:('busSecBox', 1)

> function checkValue(cellID, checkedValue)	{
	> var td = document.all ? document.all[cellID] : 
d> ocument.getElementById(cellID);

> 	
	> 	if(document.experienceForm.business_category.options  
[> document.experienceForm.business_category.selectedIndex].value!
=> checkedValue)	{
	> ******>This Line    td.style.visibility='hidden';
	> 		
	> 	}

> 		else	{
	> 		td.style.visibility='visible';
	> 	
	> 	}
	> 
}> 

> 
T> hanks in advance

> Kostas Lagos

  Return to Index