fourfingerwu
30 Dec 2010, 4:39 PM
Hi all
is it posiable to append to a compenets content html rather than updating it?
I have a standard Component i.e
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.
chat_list.update(obj.results);
this there away of appending to the content area??
hope you can help me.
thanks
Mac
is it posiable to append to a compenets content html rather than updating it?
I have a standard Component i.e
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.
chat_list.update(obj.results);
this there away of appending to the content area??
hope you can help me.
thanks
Mac