Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

cssRules error in ie8 (script5007)


Hi!

I've just implemented jwplayer 6 into a project and i get an error in IE8. SCRIPT5007: Unable to get property 'cssRules' of undefined or null reference
jwplayer.html5.js, line 1 character 3356.

this is the link: dorien.samsam.work.driebit.com/webexp_dev.php/kandidaten/school-1/profiel#week-2

Not sure what i'm doing wrong.

~ Dorien

15 Community Answers

Ethan Feldman

JW Player Support Agent  
0 rated :

Access to this environment is denied

Please advise…

JW Player

User  
0 rated :

The error is gone:)

Ethan Feldman

JW Player Support Agent  
0 rated :

Great :)

JW Player

User  
0 rated :

Hi Dorien,

How did you fix the error? Im getting the same issue.

Cheers!

Ethan Feldman

JW Player Support Agent  
0 rated :

Do you have a link?

JW Player

User  
0 rated :

I too was having the same issue, couldnt seem to get round it.

Where (!n||n.sheet.cssRules.length>50000) is happening in the jwplayer.html5.js file, it appeared that n was not at object at the time of call, therefore crashing the script in IE8. I did get the same error in chrome, but it was able to handle the error without dying.

I did try to add n = n || {}; but even that didnt help, i assume because if you try to call a method on an empty object it still dies.

In the end my fix was to remove the html5 js file, and force the player to be flash only.

JW Player

User  
0 rated :

I also have this error. In jswplayer.html5.js you have the following code:

if (!d || 5E4 < d.sheet.cssRules.length) d = f();

When on the second iteration d evaluates to true, for some reason in IE8 the d.sheet.cssRules property is not set causing this error.

The above code is probably correct as this does what is it supposed to; I guess the error is in the property not being set in IE8/7

Ethan Feldman

JW Player Support Agent  
0 rated :

Do you guys have links?

JW Player

User  
0 rated :

Sorry I cant provide a link, the server is behind a firewall

JW Player

User  
0 rated :

Ethan, I contacted you via mail (richard at minddistrict.com) about a separate issue. You can also see this error when you go to our staging server in IE8.

Ethan Feldman

JW Player Support Agent  
0 rated :

@Peter – Sorry, I need a link for debugging.

@Richard – Thanks, will take a look.

JW Player

User  
0 rated :

I am also having this issue, any official workaround or fix planned?

Ethan Feldman

JW Player Support Agent  
0 rated :

Link?

JW Player

User  
0 rated :

I have the same problem with "...5E4<d.sheet.cssRules.length..." as Richard has and could not get it fixed. Please help.. Thanks

Ethan Feldman

JW Player Support Agent  
0 rated :

Link?

This question has received the maximum number of answers.