1. #1
    Sencha Premium Member
    Join Date
    Jan 2008
    Posts
    24
    Vote Rating
    0
    yade is on a distinguished road

      0  

    Question enable/disable

    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,251
    Vote Rating
    73
    Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold

      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;

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar