Results 1 to 8 of 8

Thread: error in IE 8

  1. #1

    Default error in IE 8

    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

  2. #2
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,245

    Default

    You have trailing comma's in your code.

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

  3. #3

    Default

    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.
    ]

  4. #4
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,245

    Default

    "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.

  5. #5

    Default

    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

  6. #6
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,245

    Default

    Did you update the website? I'm still seeing "Unexpected ','" errors.

  7. #7

    Default

    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.

  8. #8
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,245

    Default

    Here an example of jslint.com output for adduser-form.js (but you should use it on all your .js files):
    Code:
    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!

Similar Threads

  1. Chart has error when store is loaded (Error calling method on NPObject)
    By RobWilson in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 17 Jan 2011, 9:46 AM
  2. Error on submitting form (Syntax error () line 7389)
    By bisounux in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 20 Aug 2009, 2:12 PM
  3. BasicForm with xml error reader: default error message displayed
    By michele.segata in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 10 Jan 2009, 6:27 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •