Issues with jQuery in IE8

JQuery works great in Safari and Firefox. In IE8 (using the developer tools), I get the error message: "Failed to get the position property. Invalid argument jquery-1.3.2.js, line 12 characters 12949." Using debugging, the script highlights the characters {J [G] = K}.

I have no idea what this does, but it seems to be causing the problem! The result is that when you click on a thumbnail in one of my galleries, the image does not open in IE8. If anyone understands this or how to fix it, I would be very grateful! See the Problem in Action (or not) on my website www.blueshiftgallery.com Thank you very much!

+2
source share
4 answers
+2

, , IE ( ).

, jquery .

, , pos , NaN, .

, window.innerWidth pos. $(window).width().

, , , , .

+2

That's why I had a reason why I ran into this problem.

var visitorPanelHeight = $('#VisitorPanel').css('height').replace(/px/i, '');

I tried to capture the height and cut the "px" from a value that was never set via .css. This returned the "auto".

Hope this helps.

0
source

for me it is solved this way and works correctly in IE8 and IE7

just remove or comment out the position property that forms the touch of the tip.

here is my Qtip constructor.

 <script type="text/javascript">
    $.fn.qtip.styles.mystyle = {

        background: '#A2D959',
        color: 'black',
        textAlign: 'right', direction: 'rtl',          
        name: 'dark' 
         , tip: 'topLeft' 
        // , position: { corner: { target: 'bottomRight', tooltip: 'topLeft'} }
    }

    $(document).ready(function () {
        $('#tt21,#tt22,#tt4,#ttMobile,#ImgEmail,.ttFaname').qtip({ style: { name: 'mystyle'} });
    });
</script>
0
source

All Articles