PDA

View Full Version : [SOLVED] how to escape apostrophe inside extjs



rimbaudsolaris
21 Jun 2010, 4:08 AM
I'm using internet explorer but the title below which contains the apostrophe
Liste des types d'action trigger an error. So I tried to replace it with
', but now it display the code
'
With Firefox it works well.





var businessReferenceDataPanelTabs = new Ext.TabPanel({
activeTab: 0,
baseCls:'x-plain',
width:600,
height:400,
plain:true,
defaults:{
autoScroll: true
},
items:[
{items: sybilNotesList,
title: 'Liste des notes Sybil'
},
{items: workflowActionTypesList,
title: 'Liste des types d'action'
}
]
});Thanks a lot for your help

pavanextjs
21 Jun 2010, 6:00 AM
Try this...


title: 'Liste des types d\'action'

rimbaudsolaris
21 Jun 2010, 7:35 AM
sorry it doesn't work it says
Error: Expected '}'

rimbaudsolaris
21 Jun 2010, 7:44 AM
sorry, it was not well redeployed, it works !

thanks ;-)