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:

Gray Failures: What is it and how to detect one?

If you are reading this article , i guess you are curious to know about gray failures and different methods to detect gray failures.  Hopefu...