sitelink1  
sitelink2  
sitelink3  
extra_vars4  
extra_vars5  
extra_vars6  

QUESTION : https://github.com/ducksboard/gridster.js/issues/268

SOLUTION : https://www.cocept.io/blog/development/gridster-breaks-iframe-drag-drop/

 

This is a common problem with drag and drop, and can be fixed relatively easily by covering your iframe with a transparent element that is hidden by default. When the drag starts, the element is shown. When the drag stops, the element is hidden.

  • Add the following HTML to each <li> widget:
  <div class="overlay_fix"></div>
  • Add the following CSS to the <head> element of your page
  .overlay_fix {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100000;
  opacity: 0;
  display: none;
  }
  • Change your Gridster instantiation javascript to specify the overlay_fix_start and overlay_fix_stop functions for the draggable.startand draggable.stop events:
  var overlay_fix_start = function() {
  $('.overlay_fix').show();
  }
   
  var overlay_fix_stop = function() {
  $('.overlay_fix').hide();
  };
   
  // initiate gridster with the above functions executed each time a drag is started / stopped
  $(".gridster ul").gridster({
  widget_margins: [10, 10],
  widget_base_dimensions: [140, 140],
  draggable: {
  start: overlay_fix_start,
  stop: overlay_fix_stop
  }
  });

 

Now when you start dragging an element, the entire <li> is covered with a full size transparent <div> that covers the mouse over event of the iframe and your drag should never stop, even if you mouse over the location of the iframe.

 

 

 

 

 

 

 

QUESTION : https://stackoverflow.com/questions/14698419/preserve-iframe-content-on-drag

SOLUTION : http://jsfiddle.net/5QL7W/27/

 

내용이 너무 많아서 생략

 

 

 

 

 

 

 

 

 

 

QUESTION : https://stackoverflow.com/questions/30842870/jquery-ui-dragging-over-iframe-lost-the-drag

SOLUTION : http://jsfiddle.net/m9kveakv/10/

 

<h3>Pick a number on the SIDE MENU and drag t inside the iframe. Then make a fast drag (in order the mouse goes out the number div area)</h3>

 

<div class="container">

    <div class="side-menu">

        SIDE MENU

        <ul id="draggable">

          <li class="ui-state-default">1</li>

          <li class="ui-state-default">2</li>

          <li class="ui-state-default">3</li>

          <li class="ui-state-default">4</li>

          <li class="ui-state-default">5</li>

        </ul>

    </div>

    <div class="content">

        

        <iframe src="http://www.w3schools.com"></iframe>

        

    </div>

    

</div>

 

  $(function() {

      $( "#draggable li" ).draggable({

          revert: true,

          iframeFix: true

      });

  });

번호 제목 글쓴이 날짜 조회 수
» 마우스 드래그(drag)시 iframe 위에서 컨트롤 잃는 현상과 해결 방안 황제낙엽 2017.12.12 18478
80 매우 간단한 AJAX 예제 - prototype.js 이용 (JSP) 황제낙엽 2007.08.24 7497
79 [re] XML+JS 연동 다중셀렉트박스 (2) - [AJAX] <font color="brown">(MS Explorer 전용)</brown> 황제낙엽 2006.02.22 1559
78 Redux: React 앱의 효율적인 데이터 교류 file 황제낙엽 2020.05.19 740
77 json을 이용한 로그인 구현 file 황제낙엽 2011.03.25 601
76 How Prototype extends the DOM (Prototype으로 DOM을 확장하는 법) 황제낙엽 2011.03.24 444
75 $.ajax() 공략 file 황제낙엽 2011.03.27 415
74 Dojo로 HTML 위젯 개발하기 - Dojo HTML 위젯 황제낙엽 2009.03.18 363
73 Building Your Own Widget Library with YUI 황제낙엽 2009.04.16 321
72 15+ jQuery Popup Modal Dialog Plugins and Tutorials 황제낙엽 2011.03.30 280
71 XML+JS 연동 다중셀렉트박스 (1) - [AJAX] <font color="brown">(MS Explorer 전용)</brown> 황제낙엽 2005.12.02 241
70 Jasmine 관련 황제낙엽 2020.01.13 240
69 다섯 가지의 Ajax 우수 사례 황제낙엽 2011.04.07 219
68 Spring에서 DWR Annotation 사용하기 file 황제낙엽 2009.10.28 151
67 [펌] 6. DOJO AND JSON file 황제낙엽 2009.03.11 137
66 Ajax 관련 사이트 정리 황제낙엽 2006.04.20 132
65 웹 개발 패러다임의 전환 - Flex와 Ajax의 동거 황제낙엽 2006.12.21 125
64 XML+JS 연동 다중셀렉트박스 (1) - [AJAX] <font color="brown">(MS Explorer 전용)</brown> 황제낙엽 2005.12.02 125
63 DWR 2.0 and Spring 2.x - The DWR namespace handler 황제낙엽 2009.05.16 124
62 관심 사이트 황제낙엽 2009.03.12 116