IE8 only - object does not support property or widget '

I get an error message related to [jCoverflip] [1], which occurs only in IE8. The following error has occurred:

SCRIPT438: object does not support property or widget 'jquery.jcoverflip.js, line 508 characters 1

which refers to the following code:

$.widget( 'ui.jcoverflip', { 

I have jQuery and jQueryUI included, before the script, plus the script works fine in all other browsers.

What causes the problem?

+6
source share
2 answers

It seems you are loading jquery twice:

 <!-- First here --> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> <script type="text/javascript" src="/./scripts/jquery-ui-1.7.2.custom.js"></script> <!-- Then again here --> <script type="text/javascript" src="/scripts/jquery.js"></script> 

They look like v1.3.2 and v1.0.4 (!), Respectively. They are completely out of date. I do not know what the requirements of jQuery UI 1.7.2 are, but I am sure that v1.0.4 will not do this. v1.3.2, jQuery UI 1.7.2 - a couple of years. (You can at least take a look at jQuery UI 1.7.3, which speaks for jQuery v1.3.2.)

In addition, you use MooTools on the page, but I do not immediately see where you are calling jQuery.noConflict() (I did not dig it all deeply). This may be a problem, MooTools and jQuery are trying to use $ . To avoid conflict, immediately after loading jQuery do the following:

 <script> jQuery.noConflict(); </script> 
+5
source

I had a similar problem. There is jquery.ui.widget.js that was not included. My problem was resolved after its inclusion.

+2
source

Source: https://habr.com/ru/post/905103/


All Articles