Wednesday, June 22, 2011

Message: Expected identifier, string or number

If you get this error in your Ext JS page , then there is big possibility that you have added a extra comma which is not required .

E.g.
Incorrect entry
{
title: 'Main Content',
collapsible: false,
region: 'center',
layout: 'fit',
margins: '5 0 0 0',
xtype: 'panelbais' , }

Correct entry

{
title: 'Main Content',
collapsible: false,
region: 'center',
layout: 'fit',
margins: '5 0 0 0',
xtype: 'panelbais' }


Check out the last comma before the closing curly braces .

No comments:

Architecting Resilient application on AWS

 Great whitepaper on improving resiliency of distributed systems: https://docs.aws.amazon.com/whitepapers/latest/availability-and-beyond-imp...