hi Markus,

        You can do that using HTML <DIV> or <SPAN> tag.

        try following


        <script>
        function show()
        {
                if(table1.style.visibility=="visible")
                table1.style.visibility ="hidden"
                else if(table1.style.visibility=="hidden")
                table1.style.visibility ="visible"
        }
        </script>


        <SPAN ID='textCard' style="visibility:hidden;">
        <input type='text' name='txtCardName' value''>
        </span>

        <select name='cmbSelect' onChange='show();'>
        <option>A</option>
        <option>B</option>
        </select>
        </span>

hope that helps..
please get back in case u need more help

Rohan


-----Original Message-----
From: Markus Spath [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 21, 2002 3:10 PM
To: [EMAIL PROTECTED]
Subject: Re: OPTION Menu...


[snip..]
> The scenario will be, I have an OPTION Menu (Dropdown or RadioButton) on
my servlet page which came from the database, then if I select one of any
choices from the Menu (let say, "Credit Card"), I would like to
automatically put a Text Box (i.e. "Account Number") under the menu but
prior to that the appearance of the servlet page does not have the text box.
>
> Could anyone suggest me, how can I do this.
[snip..]



i don't know whether you can manage this dynamically within the browser,
maybe
with DHTML??

but a workaround for this would be to call your servlet again, passing it as
a
parameter the value of the selected item -i.e. 'creditcard'- and then
building
the page accordingly with the textbox.

hope that helps,
Markus

___________________________________________________________________________
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


DISCLAIMER: Information contained and transmitted by this E-MAIL is
proprietary to MASCOT SYSTEMS LTD and is intended for use only by the
individual or entity to which it is addressed, and may contain information
that is privileged, confidential or exempt from disclosure under applicable
law. If this is a forwarded message, the content of this E-MAIL may not have
been sent with the authority of the Company. If you are not the intended
recipient, an agent of the intended recipient or a person responsible for
delivering the information to the named recipient, you are notified that any
use, distribution, transmission, printing, copying or dissemination of this
information in any way or in any manner is strictly prohibited. If you have
received this communication in error, please delete this mail & notify us
immediately at [EMAIL PROTECTED] Before opening attachments,
please scan for viruses

___________________________________________________________________________
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

Reply via email to