"jQuery.support.opacity is null or not an object"

So you are one of those jQuery newbies who get baffled with such maddening errors :). Me too! One thing to remember while working with jQuery in Visual Studio, the vsdoc.js file is solely built for jQuery intellisense at design time for we intellisense-ridden folks. It should not be used at runtime because doing so might result in unexpected errors as the one mentioned in the title. So the solution for the above mentioned error.. remove the reference to the vsdoc.js file from your page and run it.

Also just for sanity check, if you happen to use ASP.NET MVC, by default, when you drag the jquery files onto the Master Page for example, they are added as below

<script src="../../Scripts/jquery-1.3.2.min.js" type="text/javascript"></script>

The ../../ prefix might create problems for the child pages. The child pages would not be able to refer to the script files referenced like this. Get rid of the ../.. so that it looks as below

<script src="/Scripts/jquery-1.3.2.min.js" type="text/javascript"></script>

Happy Programming!

1 Comment:

George said...

I encountered this in IE as the page rendered in the IE 8.o browser this came as an alert and the elements in the page was distorted. There is no issue with Fire fox and chrome

Post a Comment