Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Jun 2010
    Posts
    31
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Understanding IE page load error

    Hello,

    I'm getting a warning in IE7 that my page loads with errors
    Understanding IE page load error-ie7_error.jpg

    I don't understand where to look to locate the errors?

    www.cranihum.com

    Please help

    thanks

    PS http://validator.w3.org/check?uri=ht...ranihum.com%2F

  • #2
    Senior Coder Rowsdower!'s Avatar
    Join Date
    Oct 2008
    Location
    Some say it's everything.
    Posts
    2,027
    Thanks
    5
    Thanked 397 Times in 390 Posts
    Quote Originally Posted by sohopigeon View Post
    Hello,

    I'm getting a warning in IE7 that my page loads with errors
    Click image for larger version. 

Name:	ie7_error.jpg 
Views:	91 
Size:	21.4 KB 
ID:	8671

    I don't understand where to look to locate the errors?

    www.cranihum.com

    Please help

    thanks

    PS http://validator.w3.org/check?uri=ht...ranihum.com%2F
    That's a javascript error. Tracking that down in IE is a real pain. I see a lot of people recommend Microsoft Script Editor for that. If you have Windows XP that should be a on your PC already (see here for how to enable it). If not, I believe you can buy it. I've never used it, but it gets a lot of attention from people posting blogs on js debugging for ie.

    I also came across this:
    http://www.berniecode.com/blog/2007/...loper-express/

    That was written in 2007 so I'm not sure if that method still works with Visual Web Developer Express 2010 or if VWD Express 2010 already supports this javascript debugging for free (apparently in 2007 it did not). It's probably worth a look too, though.

    At any rate, it's not really an HTML/CSS issue.
    The object of opening the mind, as of opening the mouth, is to shut it again on something solid. –G.K. Chesterton
    See Mediocrity in its Infancy
    It's usually a good idea to start out with this at the VERY TOP of your CSS: * {border:0;margin:0;padding:0;}
    Seek and you shall find... basically:
    validate your markup | view your page cross-browser/cross-platform | free web tutorials | free hosting

  • #3
    New Coder
    Join Date
    Jun 2010
    Posts
    31
    Thanks
    4
    Thanked 0 Times in 0 Posts
    Thank you, I'll check out those links

  • #4
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    "expected identifier, string or number"

    This error message is due to an Array or JSON object syntax problem. In early versions of JavaScript the elements of an array (or of an object) should be separated by comma, but the last element should not have the last comma at the end:
    Code:
    var myArray=[
    'a',
    'b',
    'c' // note that here there is no comma
    ]
    var myObject={
    'a':'avalue',
    'b':'bvalue',
    'c':'cvalue' // note that here there is no comma
    }
    Modern browsers have modified this rule, as the new JavaScript versions have changed a little bit, thus the last comma became optional. But IE6 and IE7 are not "modern" browsers, thus for them the last comma remains forbidden. In other words IE 7 expects another identifier element after a last comma in an array or in an object.

    All you have to do is to check the arrays and/or the JSON objects within the javascript codes and remove that "the last" comma from somewhere.

    As a note: the code works ok in IE8. Problems occur only in IE < 8
    Last edited by Kor; 06-29-2010 at 08:54 AM.
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

  • Users who have thanked Kor for this post:

    sohopigeon (06-28-2010)

  • #5
    New Coder
    Join Date
    Jun 2010
    Posts
    31
    Thanks
    4
    Thanked 0 Times in 0 Posts
    Thank you Kor,

    That was exactly the problem, I have located and deleted the errant comma :-)


  •  

    Posting Permissions

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