PDA

View Full Version : error in IE 8



micromerger
24 Feb 2011, 6:04 AM
hi i have developed a user infterface for my client which is working perfectly fine in FireFox, Crome and Safari but it pop out Errors in IE8.
I have added different components in files and include them in main file. and add function Ext.onReady in start of file,
Can anyone look on this for me. will be verythankful to u all
my test server link is http://24hourpersonaltrainer.com.au/huntsoft/layout.php

Condor
24 Feb 2011, 7:24 AM
You have trailing comma's in your code.

Run your .js code through jslint.com and fix all the errors it finds.

micromerger
24 Feb 2011, 9:48 AM
Thanks for ur kind reply i think it will really help to solve this issue.

I have checked my one file code and jslint.com through number of errors can give me some hint to fix them and also why its working in FF, SAFARI and Crome but not in IE
please tell me something with witch i can fix these errors.
-----------------------------------
Error:Problem at line 17 character 15: Mixed spaces and tabs.
{name: 'id',type:'int'},'name'
Problem at line 18 character 11: Mixed spaces and tabs.
]

Condor
24 Feb 2011, 11:36 PM
"Mixed spaces and tabs" isn't really an error, just a formatting warning.

You could run your code through jsbeautifier.org to fix those warnings.

ps. I would focus on the "Unexpected ','" errors first.

micromerger
25 Feb 2011, 12:07 AM
i have run and then use jsLint.com but still throughing problems, there is no categorization of Warnings and Unexpected errors.
please help me out i stuck into these errors badly. plez plez

can u point out any one error so i can get idea what type of error really need to fix. thanks

Condor
25 Feb 2011, 12:24 AM
Did you update the website? I'm still seeing "Unexpected ','" errors.

micromerger
28 Feb 2011, 3:27 AM
i still not find the unexpected error specifically.
and why these errors comes in the system.
if u point any one and solution for it I will try to fix the rest myself.
but the issue is i cant figure out the cause of error.
thanks alot for ur time.

Condor
28 Feb 2011, 4:16 AM
Here an example of jslint.com (http://www.jslint.com/) output for adduser-form.js (but you should use it on all your .js files):

Error:
Problem at line 75 character 51: Unexpected ','.

boxLabel: 'User Active Status',

Problem at line 119 character 53: A leading decimal point can be confused with a dot: '.33'.

columnWidth:.33,

Problem at line 140 character 53: A leading decimal point can be confused with a dot: '.34'.

columnWidth:.34,

Problem at line 160 character 53: A leading decimal point can be confused with a dot: '.33'.

columnWidth:.33,

Problem at line 163 character 41: Expected an identifier and instead saw 'default' (a reserved word).

default:{anchor:'100%'},

Problem at line 182 character 53: A leading decimal point can be confused with a dot: '.56'.

columnWidth:.56,

Problem at line 185 character 41: Expected an identifier and instead saw 'default' (a reserved word).

default:{anchor:'100%'},

Problem at line 203 character 85: A leading decimal point can be confused with a dot: '.5'.

colum...

Problem at line 223 character 85: A leading decimal point can be confused with a dot: '.5'.

colum...

Problem at line 261 character 53: A leading decimal point can be confused with a dot: '.44'.

columnWidth:.44,

Problem at line 265 character 41: Expected an identifier and instead saw 'default' (a reserved word).

default:{anchor:'95%'},

Problem at line 274 character 49: Expected an identifier and instead saw 'default' (a reserved word).

default:{anchor:'96%'},

Problem at line 318 character 65: A leading decimal point can be confused with a dot: '.5'.

columnWidth:.5,

Problem at line 344 character 65: A leading decimal point can be confused with a dot: '.5'.

columnWidth:.5,

Problem at line 377 character 65: A leading decimal point can be confused with a dot: '.5'.

columnWidth:.5,

Problem at line 401 character 65: A leading decimal point can be confused with a dot: '.5'.

columnWidth:.5,

Problem at line 430 character 65: A leading decimal point can be confused with a dot: '.5'.

columnWidth:.5,

Problem at line 435 character 53: Expected an identifier and instead saw 'default' (a reserved word).

default:{anchor:'95%'},

Problem at line 438 character 91: Unexpected ','.

fieldLabel: 'Require ...

Problem at line 444 character 92: Unexpected ','.

fieldLabel: 'Allow Pa...

Problem at line 448 character 92: Unexpected ','.

fieldLabel: 'Allow Sc...

Problem at line 452 character 113: Unexpected ','.

fieldLabel: 'Can Crea...

Problem at line 456 character 116: Unexpected ','.

fieldLabel: 'Can Ente...

Problem at line 461 character 65: A leading decimal point can be confused with a dot: '.5'.

columnWidth:.5,

Problem at line 466 character 53: Expected an identifier and instead saw 'default' (a reserved word).

default:{anchor:'100%'},

Problem at line 473 character 71: Unexpected ','.

maxValue:99999,

Problem at line 479 character 92: Unexpected ','.

fieldLabel: 'Allow Sc...

Problem at line 483 character 104: Unexpected ','.

fieldLabel: 'Can Crea...

Problem at line 487 character 110: Unexpected ','.

fieldLabel: 'Can Ente...

Implied global: Ext 2,3,4,5,6,8,13,22,27,36,41,50,55,64

You really need to remove those "Unexpected ','" errors!