Help~~..how to disable form in jsp

helo..i want to ask..i have three radio buttons and three text box..if radio button first is being checked and put in some value..i want to disable the other two..how i can do this..
<table>
<tr>
<td height="34"></td>
<td width="3%"> <input type="radio" name="inputType" value="ServiceNum">
</td>
<td colspan="2" valign="top"><font color="#000000" size="-1" face="Verdana, Arial, Helvetica, sans-serif">Enter
Service Number</font><font size="-1" face="Verdana, Arial, Helvetica, sans-serif"> </font></td>
<td valign="top">:</td>
<td width="248" valign="top"><input name="txtSrvNum" type="text" id="txtSrvNum" size="40" maxlength="12"></td>
<td width="196" valign="top"><font size="-3" face="Verdana, Arial, Helvetica, sans-serif" color="#0A3291">Example:
00327548624</font></td>
</tr>
<tr>
<td height="34"></td>
<td> <input type="radio" name="inputType" value="AccountNum"> </td>
<td colspan="2" valign="top"><font color="#000000" size="4" face="Times New Roman, Times, serif"><font size="-1" face="Verdana, Arial, Helvetica, sans-serif">Enter
Account Number</font></font></td>
<td valign="top">:</td>
<td valign="top"><input name="txtAccNum" type="text" id="txtAccNum" size="40"></td>
<td valign="top"><font size="-3" face="Verdana, Arial, Helvetica, sans-serif" color="#0A3291">Example:
A500019982530 </font></td>
</tr>
<tr>
<td height="24"></td>
<td> <input type="radio" name="inputType" value="ESNNum"> </td>
<td width="140"><font color="#000000" size="4" face="Times New Roman, Times, serif"><font size="-1" face="Verdana, Arial, Helvetica, sans-serif">Enter
ESN Number</font></font> </td>
<td width="37"> </td>
<td valign="top">:</td>
<td valign="top"><input name="txtESNNum" type="text" id="txtESNNum" size="40"></td>
<td valign="top"><font size="-3" face="Verdana, Arial, Helvetica, sans-serif" color="#0A3291">Example:
C000B31F</font></td>
</tr></table>

Hi,
can u try this you work will easy
<html>
<head>
<script language"JavaScript">
function disableRadio() {
if(document.inputForm.inputType[0].checked == true) {
document.inputForm.inputType[1].disabled = true;
document.inputForm.inputType[2].disabled = true;
document.inputForm.txtAccNum.disabled = true;
document.inputForm.txtESNNum.disabled = true;
if(document.inputForm.inputType[1].checked == true) {
document.inputForm.inputType[0].disabled = true;
document.inputForm.inputType[2].disabled = true;
document.inputForm.txtSrvNum.disabled = true;
document.inputForm.txtESNNum.disabled = true;
if(document.inputForm.inputType[2].checked == true) {
document.inputForm.inputType[0].disabled = true;
document.inputForm.inputType[1].disabled = true;
document.inputForm.txtAccNum.disabled = true;
document.inputForm.txtSrvNum.disabled = true;
</script>
</head>
<body>
<form name="inputForm">
<table>
<tr>
<td height="34"></td>
<td width="3%"> <input type="radio" name="inputType" value="ServiceNum" onClick="disableRadio();">
</td>
<td colspan="2" valign="top"><font color="#000000" size="-1" face="Verdana, Arial, Helvetica, sans-serif">Enter
Service Number</font><font size="-1" face="Verdana, Arial, Helvetica, sans-serif"> </font></td>
<td valign="top">:</td>
<td width="248" valign="top"><input name="txtSrvNum" type="text" id="txtSrvNum" size="40" maxlength="12"></td>
<td width="196" valign="top"><font size="-3" face="Verdana, Arial, Helvetica, sans-serif" color="#0A3291">Example:
00327548624</font></td>
</tr>
<tr>
<td height="34"></td>
<td> <input type="radio" name="inputType" value="AccountNum" onClick="disableRadio();"> </td>
<td colspan="2" valign="top"><font color="#000000" size="4" face="Times New Roman, Times, serif"><font size="-1" face="Verdana, Arial,
Helvetica, sans-serif">Enter
Account Number</font></font></td>
<td valign="top">:</td>
<td valign="top"><input name="txtAccNum" type="text" id="txtAccNum" size="40"></td>
<td valign="top"><font size="-3" face="Verdana, Arial, Helvetica, sans-serif" color="#0A3291">Example:
A500019982530 </font></td>
</tr>
<tr>
<td height="24"></td>
<td> <input type="radio" name="inputType" value="ESNNum" onClick="disableRadio();"> </td>
<td width="140"><font color="#000000" size="4" face="Times New Roman, Times, serif"><font size="-1" face="Verdana, Arial, Helvetica,
sans-serif">Enter
ESN Number</font></font> </td>
<td width="37"> </td>
<td valign="top">:</td>
<td valign="top"><input name="txtESNNum" type="text" id="txtESNNum" size="40"></td>
<td valign="top"><font size="-3" face="Verdana, Arial, Helvetica, sans-serif" color="#0A3291">Example:
C000B31F</font></td>
</tr></table>
</form>
</body></html>

Similar Messages

  • Help~How to disable Adobe Updater in Reader 8.*/9.*?

    Does anyone here know how to disable the Adobe Updater by registry or Group Policy?(if possible)
    I won't like to manually disable them by "Help" -> "Check for updates"
    The following registry key only works in 6.*/7.*
    [HKEY_LOCAL_MACHINE\Software\Adobe\Acrobat Reader\6.0\Updater]
    "bShowInstCompDialog"=dword:00000000
    "bShowNotifDialog"=dword:00000000
    "iUpdateFrequency"=dword:00000000
    [HKEY_LOCAL_MACHINE\SOFTWARE\Adobe\Acrobat Reader\7.0\Updater]
    "bShowInstCompDialog"=dword:00000000
    "bShowNotifDialog"=dword:00000000
    "iUpdateFrequency"=dword:00000000
    Help~

    I don't know where that preference item is stored. But if it's in the registry, I would do the following if I were in your situation.
    *export the entire registry
    *set the no-update preference, according to Aaron's suggestion
    *export the entire registry again (to a different name)
    *compare the two files (e.g. with windiff); that should show you what's changed in the registry

  • How to Disable a entire JSP form based on single value

    Hi,
    My requirement is I have to disbale a JSP form based on getting single value from the drop down box. Please suggust me some ideas.
    Highly aprreciated
    Thanks In advance
    Anbr19

    Well as said by my fellow it could be easily acheived by javscript
    say i'm assuming the dropdown has set of value under a form named SampleForm..
    here is how you do using javascript
    <script language="javascript">
    function disable(txt){
       if(txt == '<Condition Value>'){
           for(var i =0 ; i < document.SampleForm.length ;i++)         
               document.SampleForm.elements.disabled = true;
    </script>
    <form name="SampleForm">
    <select name="dropdown" onchage="disable(this.value)">
    <option value="1">1</option>
    <option value="2">2</option>
    <option value="3">3</option>
    </select>
    </form>
    hope this might help :)
    REGARDS,
    RaHuL

  • How to disable loading of jsp object  tag everytime

    Hi,
    We have loaded pdf image using applet viewer in JSP object.
    paneltabbed->showdetailitem->verbatim->object.
    Above is the flow of tags involved. Everytime i change the tab and come back to above tab, jsp object reloads.
    How do I restrict it not to load everytime?
    How do i catch the tab change event?
    Any help towards this is much appreciated. Thanks in advance
    Regards,
    Pradeep

    >
    How do I restrict it not to load everytime?
    >
    I don't think that you can do this(this depends on browser and java plugin).
    >
    How do i catch the tab change event?
    >
    If you need to catch this event on client side(by javascript), you can attach af:clientListener with type="disclosure"
    If you need to catch this event on server side, bind DisclosureListener to your bean
    Dario

  • Help: how to open form in NetBeans ?

    Hi, I'm newbie in Java. I used NetBeans IDE for my project.
    I have 2 forms. In the first form, I have menu called "Setup". I need to open the second form when I click the "Setup" menu. I already enter to the action dialog, but I don't know how to complete it. Please help me.

    Java is not VB. Please go through [The Java&#8482; Tutorials|http://java.sun.com/docs/books/tutorial/index.html].
    db

  • Help how to disable right click of touchpad

    I have been using my Lenovo X1 carbon for 4 months.  But the experience has been awful.
    I don't know if my tackpad is defective or not.  Currently I am in the Philippines and there is no way to check or service my unit since they don't carry this model here.
    My problem is when i tap the touch pad the right click button comes out 80% of the time.  This is really annoying.  I already disabled the right click to double finger tap.  But still even with one single tap on the middle of the touchpad the result is 80% of the time its like doing a right click.. Very annoying.
    Please help me.  If this is touchpad is defective can anyone let me know so I will have this serviced in Dec. in the US.

    [ahmed@the-rock ~]$ xinput list
    ⎡ Virtual core pointer id=2 [master pointer (3)]
    ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
    ⎜ ↳ SIGMACH1P U+P Mouse id=12 [slave pointer (2)]
    ⎜ ↳ SynPS/2 Synaptics TouchPad id=14 [slave pointer (2)]
    ⎣ Virtual core keyboard id=3 [master keyboard (2)]
    ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
    ↳ Power Button id=6 [slave keyboard (3)]
    ↳ Fujitsu FUJ02B1 id=7 [slave keyboard (3)]
    ↳ Fujitsu FUJ02E3 id=8 [slave keyboard (3)]
    ↳ Video Bus id=9 [slave keyboard (3)]
    ↳ Power Button id=10 [slave keyboard (3)]
    ↳ USB Webcam id=11 [slave keyboard (3)]
    ↳ AT Translated Set 2 keyboard
    Last edited by remstereo (2011-01-27 18:42:20)

  • HELP : How to disable iMessage without iOS

    Hi everyone,
    I need help from you guys because I have an issue with iMessage.
    I've been using this feature for a year when I recently got my iPhone 5 stolen 2 weeks ago
    Since then, I'm using a non-apple device which then do not handle iMessage.
    The problem here is that I do not receive messages from my contacts who use iMessage on their side.
    Seems like my phone number is still linked with iMessage, but messages are kind of "lost".
    I would like to deactivate iMessage from my account but I have no access to an apple device to do so.
    I tried to unregister my iPhone from my support account profile but with no success.
    Could you help me ?
    This is pretty annoying because I can't receive most of messages...
    Thanks in advance for your precious help !!
    Mat

    Read here under "no longer have iOS device":
    http://support.apple.com/kb/HT5661
    If that doesn't work, you'll have to call AppleCare to fix.

  • Help: how can web form shown without browser frame at all

    Hi,
    I upgraded to 9i form from 6.0. I want to show form without browser frame. So I used seperateFrame=true in formsweb.cfg and I use IE=JInitiator. (I tried to use IE=native, which didn't work). I have form developer installed in my window 2000 computer and tested it, it did show applet without browser. However, when I deployed to Unix AS, it still embeded in browser frame with same configuration file. I don't know why. Could someone give me some suggestions? I really need to take off the browser frame (just taking off toolbar or task bar,etc is not good enough). Also, can someone tell me what else need to be done without using JInitiator and if it will take the browser frame off too? Thanks,
    Sa

    When you say "the same configuration file" do you mean literally the same configuration file i.e. a copy of the file uploaded via FTP (or similar)? If so, did you run the dos2unix command (or similar) to strip out the spurious control characters?
    Cheers, APC

  • How to Disable Button in JSP Dynpage

    Hi ,
    I have screen in that i have Four inpur fileds called a,b,c,d
    Each Input having Two Buttons .
    if  i enter  a input filed data Remaining  b,c,d fields should  be disable.
    like tht every field like b ,c,d has to do .......
    Regards ,
    Venkat P

    Hi ,
    Tht I knw Man   if u have code idea send me with code sample
    Regards ,
    Venkat

  • How to disable (grey out) button in report

    Hi,
    Can any one; pls help how to disable button (grey out) on some specific condition.
    I have a report of 2 pages; In first page it displays few records; once click on specific record control goes to next page 2; And here i have button (template based button); Once click on this it perform pl/sql procedure.
    My requirement is: The button should disable (should not hide) when moves from page 1 to page 2 based on some specific returned values in page 2.
    I have return code in button conditions (Condition type = PL/SQL Function Body Returning a Boolean)
    Sample code is:
    if :value1 = 'disable_test_value' then
    return false;
    else
    return true;
    end if;
    The above code is working fine with button completely disappers if the :value1 = 'disable_test_value' (which is suppossed to be as we gave return false).
    My question is: Is there any way; we can still show button (but button disabled or grey out; so that no action can perform on this button )? And also show some text message in other text field when button is disabled?
    Thanks!!
    UK

    I have an example: http://apex.oracle.com/pls/otn/f?p=27168:1 using theme #2. You need to use a theme that has a "grayed-out" alternate button template.
    To accomplish this I:
    1) Created one item named P1_VALUE1 to contain the condition as to whether the button should be enable ("enable_test_value") or disabled ("disable_test_value").
    2) Created an enable button with a "Button Style" of "Template Based Button" with "Button Template" value of "Button". I had the "Condition" type of "PL/SQL Function Body Returning a Boolean" to be:
    if :p1_value1 = 'disable_test_value' then
    return false;
    else
    return true;
    end if;I had the "URL Target" to be: javascript:alert('Performing function ...');
    3) Create a disabled button with "Button Style" of "Template Based Button" with "Button Template" value of "Button, Alternate 3". I had the "Condition" type of "PL/SQL Function Body Returning a Boolean" to be:
    if :p1_value1 != 'disable_test_value' then
    return false;
    else
    return true;
    end if;I had the "URL Target" to be: javascript:alert('Performing function ...');
    Mike

  • HT204023 How to disable personal hotspot.i upgraded to ios6 since then personal hotspot is showing connecting but it hasnt.there is no on off option.

    PLease help.How to disable personal hotspot.i upgraded to ios6 since then personal hotspot is showing connecting but it hasnt.there is no on off option.

    I'm using other gadget and wifi tethering works (hotspot)fine.
    Already consult with cellular provider and they confirmed that the problem might be on device.
    Do you think upgrading the ios might solve the problem?

  • How to disable SQL server 2012 sa password auto reset

    We have SQL server 2012 in windows xp and we using sa login and password as null.
    My problem is the password automatically reset within 3 hours once,
    Anyone can help how to disable the automatically reset password or how to increase the reset time.
    Thanks..!!!

    SQL Server never changes any password, someone else is doing this. And it is a high risk to use SA account especially with an empty password!!!
    Fully agree. A blank password for sa? In 2015?
    Apparently something in your environment pokes around for server instances with blank sa passwords and teaches you a lesson. You could set up an event notification or a DDL trigger to find out that may be. Or just prove that you are smarter than them by
    renaming sa. Or even better, prove that you are living in the present and set a strong password for sa. Or even better, disable sa, and only use Windows accounts that are in sysadmin so that you know how did what.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • How to create a form with jsp

    I want to create an HTML form using jsp.
    It has a couple of selection boxes. The options for the selection box needs to be read from a file.
    As I understand it can create the form in HTML. And somhow uses jsp to read a file on the server get, the data and create selection box. I can have a class on the server side that does the actual read - forexample
    SelData.class.
    Would appreciate it if some one can outline how this is done.
    - thanks

    * Pass the data used to populate the select options to the JSP page in the form of a bean.
    * In the JSP page, iterate through the bean, using the data to "fill in" the attributes and body of the option tag.
    This tutorial should help a great deal with these concepts: http://java.sun.com/webservices/docs/1.1/tutorial/doc/JSPIntro.html#wp69778

  • Forms personalisation - Vendor Form - How to Disable a Tab Page

    Hi,
    I am not a Forms 6i/9i programmer, although I have an appreciation of the concepts and can look at forms in Form builder. I have been looking at forms personalisation and have used it to execute plsql via the built in 'execute a procedure'. I can also see how to disable blocks, or items, but I haven;t managed to disable a form tab page i.e. On the vendor form there are tabs for GENERAL, CLASSIFICATION etc.
    I have tried using the object type Tab Page, but the poplist doesn;t list any tab pages. Also if you choose Canvas, the list of Canvases appears but generates errors when you try and use the form (complaining of tab page ids).
    I understand that to disable a tab page programatically, you would use SET_TAB_PAGE_PROPERTY i.e. in a forms trigger or in CUSTOM.pll
    I would have thought Forms personalisation could do this.
    Any ideas would be appreciated
    mark
    I under

    What you can do is hiding the tabs (see pic below) and force the active tab programmaticily
    Hope this helps
    Message Edité par TiTou le 09-20-2006 10:35 AM
    When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"
    Attachments:
    Clipboard01.png ‏151 KB

  • How to disable Create Supplier Tab In Supplier Inquiry Form In Ap Res

    Hi,
    How to disable Create Supplier tab in supplier Inquiry form in AP Responsibility without effecting the supplier entry form. I did the following setups but it is disable in supplier entry form also. Please help me it is very urgent.
    1. Log into your System Administrator responsibility.
    2. Navigate to Security > Responsibility > Define
    3. Query the Payables responsibility you want to only have Inquiry access.
    4. Under Menu Exclusion area, set the following:
    Type = Function
    Name = Supplier Full Access : Buyer View (POS_HT_SP_ACCESS_FULL )
    5. Save and test this responsibility.
    Thanks in advance,
    Raju.

    I guess you have followed the steps mentioned in the note
         R12: How Can You Prevent Suppliers From Being Created in Supplier Inquiry [ID 473346.1]     
    which means that you need to have separate responsibility for the Supplier Inquiry. You cannot have Supplier Inquiry and Suppler Entry in the same responsibility,please have separate responsibilities. Please make sure you are not having inquiry and entry in the same responsibility.
    Also there are some bugs, please review the note
    R12: Still Able to Update Supplier Banking Data From Supplier Inquiry Responsibility with Excluded Function Supplier Full Access: Buyer View [ID 1089925.1]

Maybe you are looking for

  • I am having a problem with enhancing a .class for JDO

    Hi i am having a rpoblem with JDO . please help me for this. Buildfile: build.xml compile: xdoclet: [ojbdoclet] May 26, 2005 11:08:55 AM xdoclet.XDocletMain start [ojbdoclet] INFO: Running <ojbrepository/> [ojbdoclet] May 26, 2005 11:08:56 AM xdoclet

  • Reg: Vendor E-mail address transfer in ALE

    Hi Gurus, We are currently in a process to transfer vendor master and customer master to GTS system(SAP system) so i have implemented change pointers for this. in BD53 i have done reduction as well . i don't want the e-mail field to be sent to GTS sy

  • Multiple sites as an alternative to CDSSO

    We use two domains for our web sites - typically one for internal and one for external applications. We have avoided CDSSO to date by using the client SDK to process logins and cookies. The price we pay is to not have true single sign-on among all ap

  • Quicktime Pro Windows export problem

    Whenever I try to export a video in Quicktime Pro, I always get "Error -43: A file could not be found." What is wrong with this thing? I've tried everything I can think of. How do I solve this? Message was edited by: Richtus

  • Safari keeps crashing on Mountain Lion

    It started right after I updated to 10.7.4.  Just upgraded to 10.7.5 and it isn't solving the problem.  I simply can't launch Safari anymore without a crash. Process:         Safari [469] Path:            /Applications/Safari.app/Contents/MacOS/Safar