Page 3 of 5 FirstFirst 12345 LastLast
Results 21 to 30 of 41

Thread: do u have extra comma? ok, ie will destroy your application!

  1. #21
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    New York, NY
    Posts
    6,956

    Default

    IntelliJ's JS editor detects them.
    Jack Slocum
    Sencha Co-Founder, Ext JS Founder
    Original author of Ext JS 1, 2 & 3.
    Twitter: @jackslocum

  2. #22
    Sencha User francescoNemesi's Avatar
    Join Date
    Apr 2007
    Location
    London (UK), Milan (ITA)
    Posts
    148

    Default

    Just wanted to say thanks for this life saving thread... especially Animal's tip on how to find extra commas with Opera.

    The more I use ExtJs the greater it becomes.

    Francesco

  3. #23

    Default

    I tend to agree with Jack, that trailing commas are easier to read.

    To keep my trailing comma style from tripping me, I run <javascriptlint>, or <jslint> before testing on IE, which of course comes before release. They often find other gotchas of the language (though can be a bit pedantic). Both can be run via simple, online form, but I prefer javascriptlint for it's error messages, and command line use.

  4. #24
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,664

    Default

    Quote Originally Posted by mchenryc View Post
    I tend to agree with Jack, that trailing commas are easier to read.

    To keep my trailing comma style from tripping me, I run <javascriptlint>, or <jslint> before testing on IE, which of course comes before release. They often find other gotchas of the language (though can be a bit pedantic). Both can be run via simple, online form, but I prefer javascriptlint for it's error messages, and command line use.
    This is very useful advice. I've used web jslint on my code (I guess javascriptlint runs only on Windows) and it is really pedantic and found many "errors".

    I recommend to use one of these tools to everybody.

    Thanks.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid MultiSearch Plugin, Grid MultiSort Plugin, Configuring ViewModel Hierarchy


  5. #25

    Default

    Hi, This post is very informative, however I would like some specific information. If someone can help me then please send me a private message. Best Regards,

  6. #26
    Sencha User
    Join Date
    Mar 2007
    Posts
    7,854

    Default

    Support is not conducted via private messaging. Post a specific question - start a new thread, don't use this one. If you feel that you need more immediate help than the public support forum provides, please see the this http://extjs.com/ext-store

  7. #27

    Lightbulb IE and js-syntax errors

    when trying to figure out why the IE doesn't render my pages properly,
    I usually start with running jsl (http://www.javascriptlint.com/) over my files instead of trying to figure out where the 'Object expected' might come from...
    Having all more or less serious problems reported by jsl fixed, there will usually be no problems with IE after all.

  8. #28

    Default

    Maybe I am wrong but JSLint can help you to check JS syntax! Visit it here http://www.jslint.com/

  9. #29

    Default

    just registered, and i saw this topic first an funny thing this comma thing just happened to me a few moments ago and i wanted to post

    Luckily this was my SECOND time and i found it more quickly this time, it was the first thing i thought to check.

    HINT: I checked buy manually removine all external <script src="...."></script>
    from my source file. I hope it will help somebody because this is how i found the buggy file.

  10. #30
    Ext User
    Join Date
    Jul 2007
    Location
    Indonesia
    Posts
    3

    Default

    Try to use Aptana IDE, it'll help to debug the javascript code.

Page 3 of 5 FirstFirst 12345 LastLast

Similar Threads

  1. Helpdesk application using YUI-ext
    By manugoel2003 in forum Community Discussion
    Replies: 5
    Last Post: 15 Feb 2011, 3:27 PM
  2. [Ext.BasicDialog].destroy(true) doesn't destroy shadow
    By diegovilar in forum Ext 1.x: Bugs
    Replies: 1
    Last Post: 25 Mar 2007, 12:42 PM
  3. Ext.form.ComboBox + Ext.data.HttpProxy + extra params
    By Saeven in forum Ext 2.x: Help & Discussion
    Replies: 9
    Last Post: 21 Mar 2007, 12:41 AM
  4. extra 1px space in dialog handle style
    By VinylFox in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 3 Mar 2007, 3:23 PM
  5. extra () on the last line of EventManager.js
    By sjivan in forum Community Discussion
    Replies: 8
    Last Post: 28 Nov 2006, 8:33 PM

Posting Permissions

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