2

실제로 무슨 일이 일어나고 있는지 잘 모르겠습니다. IE9에서는 작동하지 않습니다. 아마 IE9는 JavaScript를 제대로 처리하지 못합니까? 크롬, FF, 사파리, IE7에서 작품 (실제로이를 테스트 한)IE9 & jQuery : 목록 항목 정렬은 최신 브라우저와 IE7에서는 작동하지만 IE9에서는 작동하지 않습니다.

여기에 바이올린에 내 코드입니다 : http://jsfiddle.net/SMqR9/31/

하지 너무 복잡, 단지 중첩 된 분류가. 무슨 일 이니? IE9에서해야 할 특별한 것이 있습니까? 문제

자바 스크립트가 :

$j = jQuery.noConflict(); 
$j(function() { 

// these parts are here due to a z-index bug with IE 
    $j('ul').bind('mousedown', function(e) { 
     e.stopPropagation(); 
     if ($j.browser.msie && $j.browser.version < '9.0') $j(this).closest('.section').css('z-index', '5000'); 
    }); 
    if ($j.browser.msie && $j.browser.version < '9.0') { 
     $j('ul').bind('mouseup', function(e) { 
      $j(this).closest('.section').css('z-index', '1000'); 
     }); 
    } 
// the actual sorting code/jqueryUI sorting 
    $j("#sort_content_41,#sort_content_40,#sort_content_42,#sort_content_39").sortable({ 
     connectWith: '.section-content', 
     dropOnEmpty: true, 
     zIndex: 1004, 
     cursor: 'crosshair' 
    }); 
    $j("#sort_sections").sortable({ 
     placeholder: "ui-state-highlight", 
     connectWith: '.sections', 
     axis: 'y', 
     zIndex: 1003, 
     cursor: 'crosshair' 
    }); 
}); 

$j(function() { 
    $j("section-content").sortable({ 
     connectWith: "section-content", 
     dropOnEmpty: true 
    }); 
    $j(".section-content").disableSelection(); 
}); 
+2

최신 릴리스로 jQuery를 업데이트하십시오. 덕분에 – duri

+0

! 그것은 영원히 그렇게하기를 원했기 때문에 훌륭합니다 ... 그러나 항상 현실 세계에서 큰 변명을 할 수는 없습니다. = D – NullVoxPopuli

+0

@ 도리, 답을 게시 할 수 있다면, 나는 당신에게 점수를 줄 수 있습니다. = D – NullVoxPopuli

답변

1

이 솔루션은 최신 버전으로 jQuery를 업데이트하는 것입니다. IE9에서는 이전 버전이 제대로 작동하지 않습니다.

1

어떤 이유로 jQuery를 최신 버전으로 업그레이드 할 수없는 사용자는 드래그 앤 드롭 마우스 상호 작용에 대한 핫 픽스가 있습니다. 나는 또한 비슷한 문제에 직면 한

http://forum.jquery.com/topic/jquery-ui-does-not-work-on-ie9

:

은 다음 링크를 참조하십시오. ui.core.js 끝에 다음 코드를 추가하여 문제를 해결했습니다.

(function ($) { 
    var a = $.ui.mouse._mouseMove; 
    $.ui.mouse._mouseMove = function (b) { 
     if ($.browser.msie && document.documentMode >= 9) { 
      b.button = 1 
     }; 
     a.apply(this, [b]); 
    } 
}(jQuery)); 
관련 문제