How can i drag a view over an view that has an html content in Open Laszlo 5.0?

113 Views Asked by At

I am trying to drag an content over an html content in OL5.0. the observations are i am able to drag from the laszlo component to html component without any problem. I am able to drag from laszlo to html to laszlo. But, if i drag that view to html and then release it and then drag from html it's not working.

This is the code.

<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>
1

There are 1 best solutions below

0
On

I have been programming in OpenLaszlo 2006 and when I have tried to use the OpenLaszlo <html> class it has been very unstable, buggy and unpredictable. I do not recommend using that particular class in any application.