1. #1
    Sencha User
    Join Date
    Dec 2011
    Posts
    18
    Answers
    1
    Vote Rating
    0
    jiancha is on a distinguished road

      0  

    Question Unanswered: How to get HTML content in a component

    Unanswered: How to get HTML content in a component


    hello,

    I created a component with "{xtype: 'component', html: '0',id: 'mycom'}" in a panel.
    and I want to click a button later by using Ext.getCmp('mycom').getEl().getHTML() and return me the content '0' without tag div, but it shows me "<div class= .....>0</div>".

    How can I get the content of html without <div></div> ?

    thanks,

  2. #2
    Sencha User
    Join Date
    May 2011
    Location
    Ukraine, Rivne
    Posts
    247
    Answers
    44
    Vote Rating
    42
    redraid has a spectacular aura about redraid has a spectacular aura about redraid has a spectacular aura about

      0  

    Default


    PHP Code:
    Ext.getCmp('mycomp').getEl().dom.innerHTML 

  3. #3
    Sencha User
    Join Date
    Dec 2011
    Posts
    18
    Answers
    1
    Vote Rating
    0
    jiancha is on a distinguished road

      0  

    Default


    thanks for your answer !

Thread Participants: 1

Tags for this Thread