YES is not a valid value for DISPLAY property. check the html/css reference.
use "none" (to hide), "inline", "block" or "" [empty string] (to show)
an element.
there are other valid values, too, but support varies by browser and you
will unlikely use those for a TR tag display anyway.

also, you remember that js arrays are 0-based? row[1] is actually the
SECOND row in your table, right?

have you considers using jQuery for this? (and all other things js, btw)
your js would be something like this:
$("#yourtridtagvalue").hide();

neat, eh?

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/



Jeremy Bower wrote:
> Sorry, should have noted I had tried:
> eval("document.all." + table_name + ".rows[1].style.display='yes'");
> and got a JS error "Could not get the display property.  Invalid argument."
>
>   
>> DISPLAY is not a valid TAG ATTRIBUTE. it is just a style setting.
>> .setAttribute() is useless for setting DISPLAY STYLE.
>> use William's suggested .style.display='none' / '' instead.
>>
>> Azadi Saryev
>> Sabai-dee.com
>> http://www.sabai-dee.com/
>>
>>
>>
>> Jeremy Bower wrote:
>>     
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:309160
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to