Manipulating checkboxes from withing an onchange event handler works but I'd like to manipulate a select list like in this code example, but without luck? I'd appreciate some little help, that would be fantastic.

Thank's for some input here ;)

kind regards,

Robert


function CheckAuswahl(currForm)
{       
        
        a = document.form_addresses.form_protocol.value;
                
        if(a==33554432)
        {
                
                for(var x=0; x < currForm.elements.length; x++) {
                var y = currForm.elements[x];

                        y.checked = currForm.form_exch_enabled.checked;
                        
                        if (y.name == "form_exch_enabled") {
                                y.checked = true;
                                //alert(y.name);
                        }
                
                        if (y.name == "form_exch_name") {
                                if(y.value == "") {
                                        y.value = "ggg";
                                }
                        }
                
                        if (y.name == "form_exch_pass") {
                                if(y.value == "") {
                                        y.value = "ggg";
                                }
                        }
                        
                        if (y.name == "form_permitted_rcv") {
                                //var a=y.createElement('option');
                                //a.name="TEST";
                                //y.focus();
                                y.add('Test',null);
                                alert(y.size);
                        }
                }
        }
}


<td><%=Label_Protocol%></td>
          <td>
<%
              int intProtocol = Integer.parseInt(Value_Protocol);
%>
<select name="form_protocol" onchange="CheckAuswahl(this.form)" <%=Label_State%>>

<option <% if ( intProtocol == sysProtocol_ZModem) {%>selected<%}%>
value="<%=sysProtocol_ZModem%>">< %=Value_Protocol_ZModem%></option>

---
Robert Welz
Pro2col Limited
Weinheimer Strasse 64
D-68309 Mannheim

t  0621 724 5837
f  0621 724 5782
w  http://www.pro2col.de
e  [EMAIL PROTECTED]
skype  ro.welz

Pro2col Technischer Support
[EMAIL PROTECTED]
Tel.: +49 621 724 5837


Apple Solution Expert - Print & Publishing

File transfer & workflow specialists for the graphic art & prepress industry

Distributors for DevZeroG, Hermstedt & OneVision within the UK and Ireland

Pro2col's legal position regarding Internet communications can be found at http://pro2col.com/about/legal.asp






---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to