PDA

View Full Version : EXTJS template



veerakishorekallam
22 Mar 2012, 5:06 AM
Hi ,

I am using template and internilization.But i am getting Unterminated string constant in IE9 at the below colored code.This code is working in IE9 anf FF.

var criteriaTemplate = new Ext.XTemplate(
'<table>',
'<tbody>'+
'<tr><td>'+bundle.getMsg('vl.results.label.division')+'</td></tr>'+
'</tbody>'+
'</table>'
);

Is there any limitaion for IE9.Please help.


Thanks,
veera

mitchellsimoens
22 Mar 2012, 10:41 AM
What does bundle.getMsg('vl.results.label.division') return?

Your tpl is:

'<table>',
'<tbody>'+
'<tr><td>'+bundle.getMsg('vl.results.label.division')+'</td></tr>'+
'</tbody>'+
'</table>'

And if you notice you have a comma after the '<table>' which shouldn't really matter.

veerakishorekallam
25 Mar 2012, 10:35 PM
Hi Mitch,
Thanks for you reply
bundle.getMsg('vl.results.label.division') returning proper value .
This code is working in FF and Chrome.
I tried this code but not working in IE9 '<table><tr><td>'+bundle.getMsg('vl.results.label.division')+'</td></tr></table>'.

veerakishorekallam
27 Mar 2012, 10:00 PM
Any help please