Results 1 to 4 of 4

Thread: append instead of update

  1. #1

    Default append instead of update

    Hi all

    is it posiable to append to a compenets content html rather than updating it?

    I have a standard Component i.e

    PHP Code:
    var chat_list = new Ext.Component({
        
    id:'chat_list',
        
    tpl:[
        
    '<tpl for=".">',
        
    '<div class="{who} message clearfix">',
        
    '<div class="user_tag">{time_stamp}</div>',
        
    '<img src="{who}_user_img.png" class="user_pic"/> ',
        
    '<img src="{who}_arrow.png" />',
        
    '<div class="content">{msg}</div>',
        
    '</div><br class="clear"/>',
        
    '</tpl>']
    });
    //chat_list 
    I am updating it from a ajax request.

    PHP Code:
    chat_list.update(obj.results); 
    this there away of appending to the content area??

    hope you can help me.

    thanks

    Mac

  2. #2
    Sencha Premium User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,258

    Default

    Check out the tplWriteMode config.
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

  3. #3

    Default

    hi evant

    where do I find the details on the tplWriteMode config??
    I have search for it in the docs for about an hour now with no luck

    thanks again

    Mac

  4. #4
    Sencha Premium User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,258
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

Similar Threads

  1. Append to XTemplate
    By whiteSpot in forum Ext 3.x: Help & Discussion
    Replies: 7
    Last Post: 25 Jan 2010, 4:51 AM
  2. Ext.append
    By 4myGod in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 29 Sep 2009, 8:53 AM
  3. append elements
    By vinnitu in forum Ext 2.x: Help & Discussion
    Replies: 8
    Last Post: 7 May 2009, 6:55 AM
  4. Append DOM
    By creepi in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 19 Mar 2009, 5:06 AM
  5. DataView append
    By jazzmonster in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 13 Jul 2008, 2:06 AM

Tags for this Thread

Posting Permissions

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