PDA

View Full Version : xtemplate and function



thoreking
20 Jan 2009, 5:41 AM
Hi,

just a little problem I have using an xtemplate and a function to encode-decode string
here is the template :

var resultTpl = new Ext.XTemplate(
'<tpl for=".">',
'<div class="two" ext:qtip="drag and drop">{[decodeURIComponent(Ext.util.Format.htmlDecode(values.address))]}</div>',
'</tpl>',
'<div class="x-clear"></div>'
);
the first time an address is added, the decoding is working perfectly : the first row appears without any %20...
but if I add another address, the second one is decoded, but the first one become uncoded ( see in attachement ).

any idea ??

Thanks in advance.

T.