How can i enable the html:text box when clicking the html:button

Hi,
i have a text box which is disabled defaultly and i want to enable it when i click on submit button.
<html:button property="new" value="new">
<html:text property="name" disabled="true"/>
how i will enable that text filed? please tell me?
Thanks,
swarupa

try using javascript onclick attribute:
onclick="document.form.name.disabled=false"
m

Similar Messages

  • How can I stop a JFrame from closing when clicking the close button.

    I need to display a dialog when a user attempts to close my app, giving them the option to close, minimize or cancel. How can I stop the form from closing after the user makes his selection? I have the folllowing code, but my form still closes after selecting an option:
    private void formWindowClosing(java.awt.event.WindowEvent evt) {                                  
            //An array of Strings to be used a buttons in a JOptionDialog
            String[] options = {"Close", "Minimize", "Cancel"};
            //Determines what the user wants to do
            int result = JOptionPane.showOptionDialog(null, "What to you want to do?  Close the application, minimize or cancel?", "Please select an option...", 0, JOptionPane.QUESTION_MESSAGE, null, options, options[0]);
           //Determines what to do, depending on the user's choice
            if (result == 0) {
                //Close the application
                System.exit(0);
            } else if (result == 1) {
                //Minimize the application
                this.setState(Frame.ICONIFIED);
        }Any help would be much appreciated!

    import java.awt.event.*;
    import javax.swing.*;
    public class test extends JFrame {
         public static void main( String[] args ) {
              new test();
         public test() {
              setSize( 200, 200 );
              //the next line makes the JFrame not close
              setDefaultCloseOperation( JFrame.DO_NOTHING_ON_CLOSE );
              //now add a listener that does the trick
              addWindowListener( new WindowAdapter() {
                        public void windowClosing( WindowEvent e ) {
                             //ask the user and do whatever you wish
              setVisible( true );
    }

  • How can I write a code that triggers when clicking on Save button

    I want to hide certain fields inside my tracking list, if the login user is not part of the “Managers” group.
    To do so I want to add the following Page-load code inside a web part :-
    using (SPSite site = new SPSite(SPContext.Current.Site.Url))
    using (SPWeb web = site.OpenWeb())
    {SPGroup group = site.Groups["Managers"];
    bool isUser = site.IsCurrentUserMemberOfGroup(group.ID);
    if (isUser)
    {textbox.Visible=false;}}
    And the following custom code that triggers when saving the form :-
    using (SPSite site = new SPSite(SPContext.Current.Site.Url))
    using (SPWeb web = site.OpenWeb())
    SPList list = web.Lists["ListName"];web.AllowUnsafeUpdates = true;
    SPListItem item = list.Items[SPContext.Current.ListItem.UniqueId];
    txtTitle.Text = item["Title"] as string;item.Update();web.AllowUnsafeUpdates = false;
    But I am not sure where exactly I should add the custom code for the save button ? I tried writing it inside the Oninit method , but I got many errors as shown below:-
    So can anyone advice how i should write the web part to include the Page load & the custom save button code?
    second question in general is my above approach considered valid , i mean to hide/show list columns using web parts ?

    Hi,
    According to your post, my understanding is that you want to hide/show list columns based on specify the permission for Users, SharePoint Groups or Active Directory Groups.
    Here is a solution from CodePlex for your reference:
    SharePoint 2013 Column & View Permission
    https://sp2013columnpermission.codeplex.com/
    Best Regards
    Dennis Guo
    TechNet Community Support

  • How to disply the input text box when the data in the table is empty

    Hi,
    I m using JDeveloper 11g 5.1.1.1 : How to display the Input text box when the data in the table is empty or by using the dual table.
    Since there is no record in the table, screen is displying only the lable. not displying the Input text box.? Any property is there to enable?.
    One more case i tried by using dual (eg Select '0' as name from dual) created one view object and dragged in the JSF screen as input combo box with list of values.
    In this case also it is not displaying the combo box.Just displaying the Lable name and 0 only.
    Regards
    Bijesh K

    Hi,
    I didn,t get you.Could you please explain. I am not choosing the ADF table. Selecting and dragging ADF form only.
    Regards
    Bijesh K

  • How can I have a standard text block appear on the last page of my documents?

    How can I have a standard text block appear on the last page of my documents without having to type it in all the time? I have a terms statement with a line for a customer’s signature which I want on the last page of my invoices and right now I have to type it in each time or cut and paste it from a previous invoice. I already have a Master Page that includes the customer information and my company information at the top of each page and I am using data merge to fill each page with the items ordered and their pictures etc. I would just like to have this standard terms block automatically show up on the last page after the last item in the data merge.
    Thank you all in advance for your help.

    Thank you Peter. This works. I have the text block now at the bottom of a second master page which I apply to the last page. For aesthetics I can modify the position of the text block in the new master page to bring it up from the bottom under the last item ordered when there is less than 4 items on the page. (my data merge fits up to 4 items with their images on a page).  If the last page is full I’ll insert a final page using the second master and also bring it up to the top of the page.

  • How can print a report from form 6i,  when I press a button?

    hi Friends,
    How can print a report from form 6i, when I press a button?
    When i press a button from Form 6i, the report should print through printer.
    I have done it by using report parameter DESTYPE Printer but problem is that when I press a button printer dialogue box appear and then I give command Print to printer, I don’t want to show Printer dialogue box.
    I want when I press a button form Forms 6i , printer will print my report directly.
    Please send me the solution of this problem.
    Best regards,
    Shahzad

    Hi
    If You are using Client server application then to passing to Add all Print Parameter in the Host Command.
    Means Print command in unix to Host(lp.............) and Other Parameter to file name of the report to print.
    If You not Use Client Server Application the Also Passing a Host Command in Button-Pressed Event and Run.

  • How can you soft reset an iphone 4s when power on/off button not working

    How can you soft reset an iphone 4s when your on/ off button is not working?
    My voicemail messages are unobtainable and i'm trying to work out how to fix this.

    Sorry you don't.

  • How can i enable my ipod so that when i double press the home button i can play music?

    how can i enable my ipod touch so that when i double press the home button i can stop and start music?

    After you double click the home button, Swipe the list of active apps to the right and you will see the music controls and the screen rotation lock.

  • TS1398 I have an ipad and just recently am not able to connect to home wireless wifi, the hourglass just spins when clicking the network to connect, other devices work fine

    I have an ipad 2 and just recently am not able to connect to home wireless wifi, the hour glass just spins when clicking the network to connect, other devices work fine and can connect.  Was able to connect at school, but not here at home all of a sudden, help?

    iOS 6 Wifi Problems/Fixes
    Fix For iOS 6 WiFi Problems?
    http://tabletcrunch.com/2012/09/27/fix-ios-6-wifi-problems/
    Did iOS 6 Screw Your Wi-Fi? Here’s How to Fix It
    http://gizmodo.com/5944761/does-ios-6-have-a-wi+fi-bug
    How To Fix Wi-Fi Connectivity Issue After Upgrading To iOS 6
    http://www.iphonehacks.com/2012/09/fix-wi-fi-connectivity-issue-after-upgrading- to-ios-6.html
    iOS 6 iPad 3 wi-fi "connection fix" for netgear router
    http://www.youtube.com/watch?v=XsWS4ha-dn0
    Apple's iOS 6 Wi-Fi problems
    http://www.zdnet.com/apples-ios-6-wi-fi-problems-linger-on-7000004799/
    ~~~~~~~~~~~~~~~~~~~~~~~
    Look at iOS Troubleshooting Wi-Fi networks and connections  http://support.apple.com/kb/TS1398
    iPad: Issues connecting to Wi-Fi networks  http://support.apple.com/kb/ts3304
    WiFi Connecting/Troubleshooting
    http://www.apple.com/support/ipad/wifi/
    How to Fix: My iPad Won't Connect to WiFi
    http://ipad.about.com/od/iPad_Troubleshooting/ss/How-To-Fix-My-Ipad-Wont-Connect -To-Wi-Fi.htm
    iOS: Connecting to the Internet
    http://support.apple.com/kb/HT1695
    iOS: Recommended settings for Wi-Fi routers and access points  http://support.apple.com/kb/HT4199
    Additional things to try.
    Try this first. Turn Off your iPad. Then turn Off (disconnect power cord for 30 seconds or longer) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
    Go to Settings>Wi-Fi and turn Off. Then while at Settings>Wi-Fi, turn back On and chose a Network.
    Change the channel on your wireless router (Auto or Channel 6 is best). Instructions at http://macintoshhowto.com/advanced/how-to-get-a-good-range-on-your-wireless-netw ork.html
    Another thing to try - Go into your router security settings and change from WEP to WPA with AES.
    How to Quickly Fix iPad 3 Wi-Fi Reception Problems
    http://osxdaily.com/2012/03/21/fix-new-ipad-3-wi-fi-reception-problems/
    If none of the above suggestions work, look at this link.
    iPad Wi-Fi Problems: Comprehensive List of Fixes
    http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
    Fix iPad Wifi Connection and Signal Issues  http://www.youtube.com/watch?v=uwWtIG5jUxE
    Fix Slow WiFi Issue https://discussions.apple.com/thread/2398063?start=60&tstart=0
    Unable to Connect After iOS Update - saw this solution on another post.
    https://discussions.apple.com/thread/4010130
    Note - When troubleshooting wifi connection problems, don't hold your iPad by hand. There have been a few reports that holding the iPad by hand, seems to attenuate the wifi signal.
    ~~~~~~~~~~~~~~~
    If any of the above solutions work, please post back what solved your problem. It will help others with the same problem.
     Cheers, Tom

  • How can I [cmd]+A including text boxes? Or how to import one Pages document into another Pages document?

    Hi there,
    I am working on my thesis with several Pages documents (for the first time). And I really have searched all over the Internet to find an answer to exactly my question but I cannot find it.
    First my question was: How can I import one Pages document into another one? I found the answer on that (I think) and there is nothing else than just make a new section and copy/paste it in.
    But then another issue pops up: I cannot [cmd]+A my whole document including the texboxes to paste it in the other Pages document. Then the document will be paste without the textboxes (and I have quite a lot of them in that document) and the text will not be at the right place.
    So please explain to me: How I can combine two Pages documents and keep them exactly the way they are? Is that even possible?
    I thank you so much in advance!

    Hi Fruhulda,
    I have already tried to mark the textboxes in line but that did not work, and besides then the text and the boxes won't be at the rigt places either. Thank you for your reply .

  • How can I get a paypal text box to show up in Muse?

    I'm using paypal for my shopping cart. There was no problem adding the paypal generated HTML to the pages - everything works as it should, except for the text boxes where customers are supposed to input some specific information. The information can be entered (and comes through to paypal), but the box outline doesn't show up on my pages either before or after I publish.

    http://www.applevis.com/guides/voiceover-keyboard-shortcuts-mac-os-x
    You should be able to copy them from there.

  • How can I enable iTunes Sync to move deleted to the Trash in Outlook instead of directly deleting from my PST file?

    I use several Apple Devices: iPhone 3GS (yes, archaic), iPhone 4S, iPad, and iPad 2 for personal, and work.
    I use iTunes with MS Outlook 2010 to store all my information (e-mail, contacts, calendar, notes, etc).
    When any information changes, it is updated throughout my devices. There has been a time or two when I have accidently deleted information. I want to make sure that I can undelete the information at those times.
    When I 'Allow' iTunes to delete the information, it does not move to Trash in Outlook and instead it removes it completely from Outlook. This removes any possibility to restore the infomation at a future date if the need arises.
    This is a very important function which I miss, granular notification of every change that will take place and the ability to stop each change; when I used Blackberry Desktop with my Torch.
    Does anyone have any idea how to resolve the issu? My work around, currently, is to copy the existing PST file to a different locaion. Then, if I need to restore, I would just open the PST file and copy the item(s) back into the working PST file. This is really quite cumbesome.
    Thanks for any help you can provide.

    If you Control click on the iPhoto Library, you'll see a list of folders - one named "Masters". Inside of this folder are all of your original, high-res photos. You can copy them to other folders if you like.
    You can't delete iPhoto pics without deleting the ones in the iPhoto Library.
    You can copy all of your Masters pics out of the Library, ensuring that you won't forget any.
    I don't know of anyway to determine if there are duplicate photos - most (if not all) have a unique name assigned.
    Good luck,
    Clinton

  • How can I enable Active Directory network login while maintaining the existing local user account data?

    We have a user base of around 15 Macs that we would like to integrate into Active Directory. However, we need to maintain the existing users local account data but do not wish to have that data moved to the network. Is there an easy way to create the AD login and then move the existing account data to the new login while maintaining correct permissions?
    I've had some success logging in as root and deleting the existing account, while maintaining the home folder. Then renaming it to match the AD login account name and replacing the new and empty AD user home.  I then perform a CHOWN on that folder to give ownership to the AD account name.
    Is it this simple? I don't want to leave any loose ends.
    Thanks for any help you can provide,
    Scott

    JamesSTJ wrote:
    Oh, found it!
    And guess what? Apple wanted to charge me a one time fee of $600 to answer that question.
    It worked! thanks!
    I guess I'm cheap

  • How can I prevent Aperture from playing slideshow when hitting the play button on the keyboard?

    I am getting a bit frustrated by the fact that the play button on the keyboard, which I use all the time for controlling audio playback in iTunes and now Spotify, is assigned to starting the slideshow in Aperture. Playing a slideshow is something I never use, and is something that causes the beachball of death to appear every time. It does not make sense to me that the slideshow overrules the audio playback in iTunes. Help is much appreciated...

    In Aperture the keyboard shortcuts are defined in the Command Editor.
    To open the Command Editor,  go to the Aperture menu -> Commands -> Customize
    and in the search field enter "slideshow". Remove or replace the key binding you find there, if it is the one you want to use in iTunes.

  • How can I call a custom javascript function when clicking on cfgrid cell.

    I would like to call a custom javascript function when
    clicking on a cell in an cfgrid (of html format). The closest thing
    I can find is to use the HREF="" attribute, but it doesn't seem to
    work with javascript inside it.
    Simple example:
    <cfgridcolumn name="Foo" header="Foo"
    href="javascript:customFunction(#ID#);">
    Do I need to tap into the underlying Ext JS funtionality? If
    so, where can I start?
    Thanks!

    Hi,
    According to your post, my understanding is that you want to hide/show list columns based on specify the permission for Users, SharePoint Groups or Active Directory Groups.
    Here is a solution from CodePlex for your reference:
    SharePoint 2013 Column & View Permission
    https://sp2013columnpermission.codeplex.com/
    Best Regards
    Dennis Guo
    TechNet Community Support

Maybe you are looking for

  • Remote Update Manager on Yosemite doesn't start

    Hi to all, I have recently updated my 15 iMac (year 2012) to Yosemite. After the upgrade, the Adobe Remote Update Manager tool doesn't start, with an error 1. In the console, I see these lines: Any suggestions? Many thanks

  • I can't open iTunes with the following error page...

    Process:         iTunes [5701] Path:            /Applications/iTunes.app/Contents/MacOS/iTunes Identifier:      com.apple.iTunes Version:         10.5.2 (10.5.2) Build Info:      iTunes-10521101~1 Code Type:       X86-64 (Native) Parent Process:  lau

  • Web font not showing in design mode.

    Hi all. I'm having problems all of a sudden with my webfont not showing/ preveiwing in design mode. eg. the menu currently looks like this (design mode): when it should like this: The font i'm using is Babas Neue. It shows perfectly in preveiw mode a

  • Excel document saved as PDF

    Is it possible to use digital signatures if the pdf was not created in Acrobat? Thanks.

  • Install windows8 on macbook pro

    Can you tell me how to install windows 8 on my macbook pro? Can you guide me?