-CROSSPOST- Can someone here help

Results 1 to 2 of 2

Thread: -CROSSPOST- Can someone here help

  1. #1
    Join Date
    Dec 1969

    Default -CROSSPOST- Can someone here help

    I am trying ti hide a table using display=none with the onClick of a button. Below is my function.<BR><BR>&#060;script language="JavaScript"&#062;<BR>function HideTable1(){<BR>form1.tbGeneral.style.Display="no ne"<BR>}<BR>&#060;/script&#062;<BR><BR>when i click I get the following error<BR><BR>Error" &#039;form1.tbGeneral.style&#039; is null or not an object<BR><BR>Can someone help

  2. #2
    Join Date
    Dec 1969

    Default RE: -CROSSPOST- Can someone here help

    Yep, Ive had this one before. From memory.. I dont think the style can be used on &#060;Table&#062; tags. You can place a &#060;DIV id=xx&#062; &#060;/DIV&#062; around your table and change your statement to read<BR><BR>document.all[&#039;xx&#039;].style.display=&#039;none&#039;;<BR><BR>Note also that display starts with a d and not D and this code is also only valid for IE, I think you would use something like document.aa.style.visible=false; for Netscape but you will need to check the syntax first.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts