Thanks. This is exactly what I need.
DD
----------
From: Andras Balogh[SMTP:[EMAIL PROTECTED]]
Sent: Monday, October 18, 1999 10:43 AM
To: [EMAIL PROTECTED]
Subject: Re: off-topic: HTML
Hi,
I think You need JavaScript.
In short:
- the combox value change is generating an onChange event
you should have:
<select name="combobox" onChange="changeTextfieldValue()">
<option ...>
</select>
-You can have a non editable textfield like:
<input type="textfield" name="noneditabletext"
onFocus="document.forms[0].combobox.focus()">
(this will prevent that the textfield value to be changed).
now the javascript function changeTextFieldValue() :
<script language="JavaScript">
function changeTextFieldValue(){
file://determining wich value from the combobox was selected
var i=0;
var sel=0;
while(document.forms[0].combobox[i]){
if(document.forms[0].combobox[i].selected) {
sel=i;
break;
}
i++;
}
file://changeing the textfield value
document.forms[0].noneditabletext.value=document.forms[0].combobox[sel].valu
e;
file://(this will produce that the textfield to have the same value as the
combobox)
}
</script>
Hope it helps.
Please reply.
Best wishes,
Andras.
----- Original Message -----
From: Dr. Dragomir D. Dimitrijevic <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, October 17, 1999 4:16 PM
Subject: Re: off-topic: HTML
> Well, the user interacts with the combo-box and the input field.
> Any change in either of the two will trigger calculation and will
> display the result in a NON-EDITABLE VISIBLE field.
> What is the type of such a field (HTML tag)?
> What are the events (in HTML) that are triggered
> by change in the selection in the combo-box
> and change in the input field?
>
> DD
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html