PDA

View Full Version : String literal is not properly closed by a matching quote



shasipkn
26 Sep 2011, 11:21 PM
itemTpl: '
<div class="list-item-title">{title}</div>
' +
'
<div class="list-item-narrative">{narrative}</div>
',

when i add these codes to program . i am getting this kind of error

error message is
String literal is not properly closed by a matching quote
pleas help me


thanks in adance

twaindev
27 Sep 2011, 1:40 AM
The single quotes can not be on separate lines, so try this:


itemTpl:
'<div class="list-item-title">{title}</div>' +
'<div class="list-item-narrative">{narrative}</div>',