1. #1
    Sencha - Community Support Team jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,361
    Vote Rating
    81
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default Screencast : "The dangers of Ext.getCmp()"

    Screencast : "The dangers of Ext.getCmp()"


    I originally talked about this at the Sencha office on 8/17, but the video angle was not good. So, I decided to do an official screencast on the subject matter.



    Questions/comments are welcome.

  2. #2
    Ext JS Premium Member
    Join Date
    Mar 2010
    Posts
    49
    Vote Rating
    0
    FCTim is on a distinguished road

      0  

    Default


    Excellent Screencast. Right when I was starting to get fed up with managing various levels of ref's too. Now I have some good alternatives. :-)

  3. #3
    Sencha - Community Support Team jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,361
    Vote Rating
    81
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    Glad you found some value in it.

    Apparently you can hear my wife yelling at my 4 year old around the 15 minute mark. Hooray for good microphones. :-\

  4. #4
    Ext JS Premium Member
    Join Date
    Mar 2010
    Posts
    49
    Vote Rating
    0
    FCTim is on a distinguished road

      0  

    Default


    It adds "character" to the screencast.

    You should start doing live screencasts about different topics. I'd donate for that cause.

    Seriously though, as good as the API doc's are for ExtJS, sometimes it just helps to SEE someone walk through some code.

    My two cents,
    Tim

  5. #5
    Ext JS Premium Member
    Join Date
    Aug 2008
    Posts
    36
    Vote Rating
    3
    dloew is on a distinguished road

      0  

    Default


    Thanx for that great screencast. I never liked using static IDs and tried to avoid it. I have to train beginners using extjs and it's always hard to teach them not to flood the application with Ext.getCmp()-calls. Now I can give them the link to your screencast.

    Greetings from Germany

  6. #6
    Sencha User
    Join Date
    Feb 2008
    Location
    Illinois
    Posts
    142
    Vote Rating
    0
    carl23934 is on a distinguished road

      0  

    Default


    On this topic, I found a great way to maintain component references in a more "ext-style" way that promotes clean component design.

    http://jsjoy.com/blog/123/dealing-wi...-to-components
    JSJoy.com - my blog on the joy that is JavaScript!
    Ext Extension: Awesome Uploader - Drag n' Drop + Swfupload + Upload = Awesome

  7. #7
    Sencha - Community Support Team jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,361
    Vote Rating
    81
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    Quote Originally Posted by carl23934 View Post
    On this topic, I found a great way to maintain component references in a more "ext-style" way that promotes clean component design.

    http://jsjoy.com/blog/123/dealing-wi...-to-components

    Awesome post.

Similar Threads

  1. Ext.getCmp("grid_id").getSelectionModel().getSelections() doesnt work!!!
    By FlaminPhoenix in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 8 Jun 2010, 12:10 PM
  2. Replies: 6
    Last Post: 21 Apr 2010, 10:06 AM
  3. [Resolved] Simple form Ext.getCmp returns "undefined"
    By bainsbury in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 3 Sep 2009, 10:34 AM
  4. Error Ext.getCmp("razao_social").hideLabel is not a function
    By Rafael in forum Ext 3.x: Help & Discussion
    Replies: 8
    Last Post: 27 Apr 2009, 7:24 PM
  5. Ext.getCmp("feedChamado") is undefined
    By mestre fyoda in forum Ext 2.x: Help & Discussion
    Replies: 16
    Last Post: 3 Feb 2009, 1:19 PM

Thread Participants: 3