On Feb 6, 10:30 am, Tintin81 wrote:
> I am new to Javascript and implemented a few nice JQuery
> features on <a href="http://new.designbits.de";>my new
> website</a> . All of them work great in Firefox and Safari.
>
> In IE6, however, the site looks like a mess, even with
> Javascript enabled in the options panel.
<snip>

There are two JScript errors reported as that page loads in IE. The
first is a complaint about a missing ';' (and you will have to track
down yourself), the second is in your functions.js file where you
have:-

$.extend($.validator.messages, {
     required: "",
    email: "",
});

- in which an object literal's contents end in a comma. This is a
syntax error by ECMAScript rules, and so should be expected to be a
syntax error in browsers that implement the ECMAScript standard (such
as JScript in IE (more or less)). The ECMA standard allows syntax
extension and JavaScript(tm) (and good JavaScript(tm) imitators) take
advantage of that to be more tolerant of commas at the end of object
literal contents than they need to be (as the extra commas do not
result in ambiguities). JScript doesn't and so sees the comma as a
syntax error, and so that is a very likely cause of differences in
behaviour between IE and other browsers. Particularly if the behaviour
on IE looks like total failure to act on a script.

Reply via email to