1
OL5.0에서 html 콘텐츠를 통해 콘텐츠를 드래그하려고합니다. 관측은 입니다. 저는 문제없이 laszlo 구성 요소에서 html 구성 요소로 끌 수 있습니다. 나는 laszlo에서 html로 laszlo로 끌 수있다. 하지만 html로 뷰를 드래그 한 다음 놓은 다음 html에서 드래그하면 작동하지 않습니다.Open Laszlo 5.0에서 HTML 컨텐트가있는보기로 뷰를 끌 수 있습니까?
이것은 코드입니다.
<canvas>
<view bgcolor="green" width="20" height="20" onmousedown="dragger.setAttribute('applied', true);this.bringToFront();" onmouseup="dragger.setAttribute('applied', false)">
<dragstate name="dragger"/>
</view>
<view y="50" width="100%" height="300" bgcolor="blue" onmousedown="res.apply()" onmouseup="res.remove()">
<resizestate name="res"/>
<dragstate name="drg"/>
<text width="100%" bgcolor="gray" onmousedown="parent.drg.apply()" onmouseup="parent.drg.remove()">Drag here</text>
<html id="ht" src="http://localhost:8080/lps-5.0.x/htmlTest/resource/text.html" x="15" y="15" width="${parent.width - 30}" height="${parent.height - 30}"/>
</view>
</canvas>
맥스 칼슨 (Max Carlson)이 2007 년에 일한 데모를 가지고 있었는데, 여기에서 iframe의 OpenLaszlo 앱에서 기본 페이지로보기를 드래그 할 수있었습니다. 소스 코드를 본 적이 없으며 실제로 플랫폼에 추가되었는지 알 수 없습니다. –
하지만 내 눈에는 DHTML 런타임의 핵심 문제 중 하나입니다. iFrame을 사용하지 않고 한 페이지에서 두 개의 OpenLaszlo 캔버스 앱을 실행하는 것은 불가능합니다. –
@ r.bitter : 그래서 드래그 객체를 클릭하면 마스크처럼 html 영역에 보이지 않는 뷰를 생성 할 수 있습니다. 목표는 내가 openlaszlo 애플 리케이션을 통해이 경우에만 여전히 드래그거야. 작동할까요? – karthick