• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1325
  • Last Modified:

IE Js error


IE says that there is a JS error in the modernizer script:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C)
Timestamp: Sat, 5 Mar 2011 12:33:22 UTC

Message: Could not set the backgroundColor property. Invalid property value.
Line: 2
Char: 5665
Code: 0
URI: http://www.precicut.co.uk/system/modules/html5boilerplate/html/js/libs/modernizr-1.7.min.js

Cannot believe the error is with Modernizer, how can I cure the error?
  • 3
  • 2
1 Solution
With links to  thirty-two (32 !) external CSS files, I'd say someone, somewhere is stepping on somebody's toes.
Not to mention the tangle of JavaScript:

// Modernizr v1.7  www.modernizr.com
// MooTools Core version:1.2.5
// MooTools More version:
// jQuery JavaScript Library v1.4.4
// flowplayer.js 3.1.4
// ce_slider.js Version 2.0

33 stylesheets - I forgot the IE-specific link.
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

David S.Commented:
Does commenting out the gradient backgrounds set in the ".button a, p.back a, .button input.submit, div.pagination ul li" rule make a difference?
Luv2MuffAuthor Commented:
Hi Kravimir, thanks for taking a look, I have removed the background gradient completely.

Still same problem, any more ideas?

Luv2MuffAuthor Commented:
Kravimir, you are on the right lines, it is  the CSS that is causing the JS error.

Strangely if I set the CMS to "aggregate" the stylesheets then the error disappears.

I have been through the process of removing all stylesheets and adding them back one by one.

Including either css_print.css or css_ext_seopagegen.css caused the error to come back.

Even if I delete the contents of both file I still get the error.

I have deleted both files and then re-created them with no contents, still the same error.

How can including to either of 2 empty css files cause this js error?

Any ideas Kravimir??

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now