Dragomir writes:
> A want to show users in a HTML form a combo-box with card types and
> an input (type="text"). The input field is initially filled with
> the amount the customer owes. He/she can choose to pay more or
> less. Depending on the selected card type, there is a discount.
>
> I need a visible read-only field that is changed dynamically ad the
> user changes the selection in the combo-box and the content of the
> input field,
You can't do this with HTML. HTML is static. There's no way,
using vanilla, old-fashioned HTML, to have the user's selection of the
list box change the display before they click on the "Submit" button.
You might be able to do it with Dynamic HTML, but then again that
would only work on the most recent browsers.
You should be able to do it with javascript - that seems to be
what javascript was intended for - but you will have to be careful and
check for browser compatibility issues. I've done a bit of javascript
to support having the pages interact with my servlets appropriately,
and it was an uphill battle every step of the way. 10% coding, 90%
debugging.
Steven J. Owens
[EMAIL PROTECTED]
[EMAIL PROTECTED]
___________________________________________________________________________
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