Object doesn't support property or method 'test' -- error in IE7

393 views
Skip to first unread message

Greg

unread,
Jul 8, 2013, 5:23:01 PM7/8/13
to jpl...@googlegroups.com
I'm getting the following error in IE7:

SCRIPT438: Object doesn't support property or method 'test' 

I don't receive this in other browsers, including IE8.  I'm not testing for IE6.  The error actually occurs in IE9, in IE7 Browser Mode, IE7 Standards.

It comes from this code, within the "each" loop:

_uaBlocklist: function(list) {
// list : object with properties that are all regular expressions. Property names are irrelevant.
// Returns true if the user agent is matched in list.
var ua = navigator.userAgent.toLowerCase(),
block = false;

$.each(list, function(p, re) {
if(re && re.test(ua)) {
block = true;
return false; // exit $.each.
}
});
return block;
},


it should possibly be:

 if (re && re.test && re.test(ua)) {

or, since IE8 and earlier will always be a flash solution and cannot support native controls, these cases should always be forced to supplied controls.

St. Steinkühler

unread,
Jul 12, 2013, 5:02:34 AM7/12/13
to jpl...@googlegroups.com
Hello,

I'm getting the same error. But also in Firefox.

I had to integrate the jPlayer (2.2.0) on a Website with an older jQuery Version (1.3.2).
After a update to jQuery Version 1.4.1 the error does not occurred anymore.

So I guess jPlayer needs a newer  jQuery Version. But I could not find in the documentation which version is needed.

Maybe this information helps...

Greg

unread,
Jul 25, 2013, 7:03:32 PM7/25/13
to jpl...@googlegroups.com
I should add that I am using jQuery 1.7.1, I am using the jPlayer version from Oct. 2012, 2.2.0, because I have to baseline and am using in my jPlayer setup:

nativeVideoControls: nativeControls,

where nativeControls is a user input.  I try to exclude IE 0-8 with:

msie: /msie [^5-8]/,

which also does not seem to be working, but I think this is the correct format (also tried msie: /msie [^5-8]\./)  There is not really a working example shown in the jPlayer documentation.

If I use the native video controls default object setting, {}, neither native controls nor my supplied controls appear.

Reply all
Reply to author
Forward
0 new messages