Results 1 to 9 of 9

Thread: Javascript error

Threaded View

  1. #1

    Thread Starter
    Frenzied Member Memnoch1207's Avatar
    Join Date
    Feb 2002
    Location
    DUH, Guess...Hint: It's really hot!
    Posts
    1,861

    Resolved Javascript error

    I have a form where I check a ranking of an item, if the items rank is greater than 0, then I want to display a hidden table cell. Here is how I am doing it, but it isn't working.
    Can anyone tell me what the problem is???
    VB Code:
    1. 'The function to show or hide the cell in the table
    2. function CheckRanking(RankValue, elementTag)
    3. {
    4.     if(RankValue >= 1)
    5.     {
    6.         document.forms[0].getElementById(elementTag).style.visibility ='visible';
    7.     }
    8.     else
    9.     {
    10.         document.forms[0].getElementById(elementTag).style.display = 'none';
    11.     }
    12. }
    13.  
    14. 'This is the row where the item is ranked
    15. <td class="ESP_Data_Border" ><input maxlength="3" size="4" name="txtPriority" value="0" OnBlur="CheckRanking(this.value, 'ENHANCEMENTVERSION_B4370631-06B8-4DE4-864A-021ACDAD3087');"></td>
    16.  
    17. 'This is the cell that should show or hide based on the rank entered into the cell above
    18. <td id="ENHANCEMENTVERSION_B437063106B84DE4864A021ACDAD3087" class="ESP_Data_Border" STYLE="visibility: hidden"><select name="lstVersions"><option>HERE ARE THE VERSIONS</option></select></td>
    but I keep getting a "object doesn't support this property or method" error.
    Last edited by Memnoch1207; Nov 8th, 2004 at 12:56 PM.
    Being educated does not make you intelligent.

    Need a weekend getaway??? Come Visit

Posting Permissions

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



Click Here to Expand Forum to Full Width