Results 1 to 2 of 2

Thread: Show and hide components on user input!

  1. #1

    Default Show and hide components on user input!

    Hello,

    I am building an application with ExtJS and need to accomplish the following:

    I need to hide few components when the page renders and leave only one, the first one.
    Then, when user fills in the first component, I have to show the second one. The user should hit enter or tab to proceed to the next step.

    How can I solve this task, please.
    Thank you...

  2. #2
    Sencha User
    Join Date
    Jan 2008
    Location
    Maryville, IL, US
    Posts
    288

    Default

    Code:
            function FullShowHide(str,act){
                    if ( act == "show" ) {
                            Ext.getCmp(str).show();
                            Ext.getCmp(str).enable();
                    } else {
                            Ext.getCmp(str).hide();
                            Ext.getCmp(str).disable();
                    }
            }
    Might not be pretty, but it works.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •