Jquery UI Tabs & amp; jcarousel lite pluings ne semble pas fonctionner (conflit) dans Internet Explorer (IE)

StackOverflow https://stackoverflow.com/questions/654092

Question

J'ai les deux onglets jquery-UI & amp; plug-in jcarousel lite sur ma page Web, tous fonctionnent bien dans tous les navigateurs, à l'exception d'IE où je suppose qu'il y a une sorte de conflit comme si je sors le Jcarousel JS puis les onglets fonctionnent bien.

Quelqu'un a-t-il des suggestions sur ce problème ou sur la façon de le résoudre? Merci

<script type="text/javascript">
$(document).ready(function() {

    $('#tabs > ul').tabs({ 
        fx: { opacity: 'toggle' } 
    }); 

    $("#carousel").jCarouselLite({
        btnNext: ".prev",
        btnPrev: ".next",
        visible: 4,
    });

});
</script>
Était-ce utile?

La solution

Nous avons découvert que c’était simplement la virgule à la fin de "visible: 4,". devait être retiré.

Autres conseils

Je mets le code javascript ci-dessus dans http://javascriptlint.com/online_lint.php . un extrait des résultats

10                  btnPrev: ".next",
11                  visible: 4,
12          });
    ========^
    warning: trailing comma is not legal in ECMA-262 object initializers

 alt text
(source: stackoverflow.com ) Code Nise pour jQuery

$ (function () {

$ (".mouseWheel .jCarouselLite"). jCarouselLite ({     btnNext: ".mouseWheel .next",     btnPrev: ".mouseWheel .prev",     soulagement: "soulagement",     visible: 4,     mouseWheel: true });

});

$ (function () {     $ (".anyClass2"). jCarouselLite ({         btnNext: ".next2",         btnPrev: ".prev2"     }); });

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top