Cufon and Internet Explorer Error

I encountered an IE error (both 7 and 8) related to cufon-yui.js "Property or method is not supported by the object" Line 7, symbol 7725, cufon-yui.js.

This is the latest version of cufon (supported by IE 9) and I used it for other sites without any problems.

In this project, I myself also code some jquery, including cufon functions, but I don't think the reason. IE error refers to cufon core itself.

Currently, I cannot link you to the site for privacy issues.

thanks

+4
source share
3 answers

I also encounter an error with cufon on line 7, this happens when I make a call to Cufon.replace () before the cufon-yui.js file has finished loading.

+1
source

The latest version of cufon script works with IE9. Make sure you install v1.09i or higher, as some of the previous versions had some problems with different versions of IE, especially IE9 beta.

Download from: http://cufon.shoqolate.com/generate/

Documentation support for this issue: https://github.com/sorccu/cufon/wiki/faq#wiki-faq-1

+1
source

You may need the Sizzle Selector utility for IE, it works hand in hand with Cufon, since all your replacements are not, the main lines (for example, H2 , li ).

So in this order:

 <head> <script type="text/javascript" src="js/sizzle/sizzle.js"></script> <script type="text/javascript" src="js/cufon/cufon-yui.js"></script> <script type="text/javascript" src="js/Script_400.font.js"></script> </head> 

then ...

 <body> <!-- other body contents in here... --> <script type="text/javascript"> Cufon.now(); Cufon.replace('#hd h2'); // Requires a selector engine for IE 6-7, hence 'sizzle.js' dependency Cufon.replace('h1,h2'); // Doesn't require selector engine </script> </body> 
0
source

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


All Articles