What Does This Error Mean?

Discussion in 'JavaScript' started by jihanemo, Nov 12, 2008.

  1. #1
    At the bottom of my IE7 browser the little "Error" icon is showing up for this page - at testpage.html of americanchic.net . Here is the error:

    (not sure whether or not this is technically code so I just put it in a block anyway)
    Line: 166
    Char: 1
    Error:'ie4' is undefined
    Code: 0
    URL:  http://americanchic.net/testpage.html
    Code (markup):
    And another error:
    Line: 216
    Char: 1
    Error:'ie4' is undefined
    Code: 0
    URL:  http://americanchic.net/testpage.html
    Code (markup):
    What does this mean and how do I fix it?
     
    jihanemo, Nov 12, 2008 IP
  2. dimitar christoff

    dimitar christoff Active Member

    Messages:
    882
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    90
    #2
    it means your script dynamic drive menu is supposed to do browser detection but you must have cut this off somehow. if now references non-existent ie4 variable...

    since you use jquery, see if you can pass on the browser family into ie4/ns vars. but really - you want a better menu script. one that does not suck and its written after 2001...
     
    dimitar christoff, Nov 12, 2008 IP
  3. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #3
    Seconded - Especially since there is no reason that I can see for javascript to even be used on that page, apart from perhaps a behavior file for legacy versions of IE... You've basically got Javascript doing CSS' job. The outdated markup - table for layout, presentational attributes, etc do make the page more 1997 than 2008.

    You may also want to view that page at large fonts/120dpi - it's funny how you have oversized %/em fonts on the menu text, and nowhere else.
     
    deathshadow, Nov 12, 2008 IP
  4. jihanemo

    jihanemo Member

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #4
    I'm a beginning coder. If I don't use a table for the layout, what do you suggest? And what do you mean by the oversized "%/em fonts on the menu text"?
     
    jihanemo, Nov 13, 2008 IP
  5. rene7705

    rene7705 Peon

    Messages:
    233
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #5
    dude, tables are FINE imo.. i've had several cases where i cannot get a layout trick to work without them.
    as for the site, it could use a updated menu.. other than that it looks fine, it's fast and that's good for a shop.
     
    rene7705, Nov 13, 2008 IP