Results 1 to 2 of 2

Thread: enable/disable

  1. #1
    Sencha Premium Member
    Join Date
    Jan 2008
    Posts
    24
    Vote Rating
    0
      0  

    Question enable/disable

    Hi,

    I need to understand the difference.

    //This works in both explorer and in firefox
    document.getElementById('submit').disabled = false;

    //This does not work with neither explorer nor firefox
    //I have tried all four variants
    Ext.get('submit').disabled = false;
    Ext.get('submit').disable = false;
    Ext.get('submit').enable();
    Ext.get('submit').enable = true


    Greatful for some advice what I am doing wrong.

  2. #2
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    119
      0  

    Default

    Ext.get() returns an Ext.Element, not a HTML node!

    Use:
    Code:
    Ext.get('submit').dom.disabled = false;
    or
    Code:
    Ext.getDom('submit').disabled = false;

Posting Permissions

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