SCRIPT438: Object doesn't support this property or method - error in jQuery -



SCRIPT438: Object doesn't support this property or method - error in jQuery -

i have been having issue on live site of mine whereas on first load of page in net explorer jquery not load , error 'script438: object doesn't back upwards property or method' gets thrown. when reload page error disappear.

here code:

<script type="text/javascript"> jquery(document).ready(function() { jquery(".item-473 a").hover(function() { jquery('.menu_image').removeattr('style').attr('style', 'background-image: url(/images/volunteers_navbar.png);'); }, function() { jquery('.menu_image').removeattr('style').attr('style', 'background-image: url(/images/adults_navbar.png);'); });

and here html:

<ul class="nav-child unstyled small"> <div class="menu_image" style="background-image: url(/images/adults_navbar.png);"></div> <li class="item-472"> <a href="/activities/adults">adults</a> </li> <li class="item-473"> <a href="/activities/volunteers">volunteers</a> </li> <li class="item-474"> <a href="/activities/children-schools">children & schools</a> </li> <li class="item-475"> <a href="/activities/clubs-coaches">clubs & coaches</a> </li> </ul>

i have tried few things can't seem stop issue occurring. console says problem on line:

jquery(".item-473 a").hover(function() {

does know why might happening? thanks

just thought i'd reply in case else runs problem.

i found issue occuring in net explorer 10 when implementing jquery libray plugins such jcycle lite , nivoslider.

i found wrapping jqueyr function calls if statement eliminated issue occuring , allowed page load correctly.

for example:

jquery('.banner_slideshow .bannergroup_banner_slider').nivoslider({ effect: 'random' });

became:

if(jquery('.banner_slideshow .bannergroup_banner_slider').length) { jquery('.banner_slideshow .bannergroup_banner_slider').nivoslider({ effect: 'random' }); }

i'm not exclusively sure why causing problem in ie10 has sorted issue hope can of help else. thanks

jquery

Comments

Popular posts from this blog

javascript - mongodb won't find my schema method in nested container -

Hibernate criteria by a list of natural ids -

ios - Lagging ScrollView with UIWebview inside -