You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2007/01/30 05:27:54 UTC

DO NOT REPLY [Bug 41491] - javascript error when I use tomcat 4.1.29 and working fime with tomcat 4.03

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41491>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41491


markt@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME




------- Additional Comments From markt@apache.org  2007-01-29 20:27 -------
Javascript is a purely client side technology so I would be very surprised if
this was a Tomcat issue. To be sure, i tried the following which works as
expected, without any error.

<html>
  <head>
    <title>Bug 41491</title>
    <script type="text/javascript">
      function testEnable() {
       
if(document.form1.combobox1.options[document.form1.combobox1.selectedIndex].value=='Three')
{
          alert("Add extra text")
          document.form1.text1.disabled=false
          document.form1.text1.classname=''
        }
      }
    </script>
  </head>
  <body>
    <form name="form1">
      <select name="combobox1" onchange="testEnable()">
        <option value="One">One</option>
        <option value="Two">Two</option>
        <option value="Three">Three</option>
      </select>
      <br />
      <input type="text" name="text1" disabled="disabled" />
    </form>
  </body>
</html>

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org