Object doesn’t support this property or method: Fix This Error

avatar
Written by

How to fix the error Object doesn’t support this property or method. Follow this instruction given in this article and you will be able to fix the error that shows as Object doesn’t support this property or method. This is a 100% working method.

If you are using  Superfish, a jQuery plugin for your theme or website, you are likely to get thie Internet Explorer (IE) for your website.  The typical error would like this:

Message: Object doesn’t support this property or method
Line: 19
Char: 4
Code: 0
URI: http://www.doming.com

This error most happen on Joomla Superfish Extension or on WordPress Theme which use this Superfish jQuery plugin.
ie browser error fix

You will notice that the error refer to below code:
<script type="text/javascript">
jQuery(function(){
jQuery('ul.sf-menu').superfish();
});
</script>

What you will need to do to fix this error is, replace above with this:
<script type="text/javascript">
if ( jQuery('ul.sf-menu').superfish() ) {
jQuery('ul.sf-menu').superfish();
}
</script>

You can do this by editing the header section of your webpage. If you are on WordPress, you can edit this on header.php

So no more “Object doesn’t support this property or method” error for your website.

Posted in Tips | On | Santra Jones | Author Bio+

2 Responses to Object doesn’t support this property or method: Fix This Error

  1. Thanks Santra, it helped me…..

    Written by venu on March 11, 2011 at 10:05 pm
  2. Thanks so much! I was getting frustrated with this already.

    Written by ?????? on December 30, 2010 at 5:00 pm

Leave a Reply