[Laszlo-dev] Including an instance

Henry Minsky hminsky at laszlosystems.com
Fri Dec 4 05:36:46 PST 2009


I guess it's been a while since anyone used that option :-(


On Fri, Dec 4, 2009 at 8:09 AM, Rami Ojares / AMG Oy
<rami.ojares at archon.fi>wrote:

> I tried again the following code
>
> File fragment.lzx
> -----------------
> <canvas debug="true">
>    <view >
>        <include href="fragment1.lzx" type="text"/>
>    </view>
> </canvas>
>
>
> File fragment1.lzx
> ------------------
> <method name="foo" args="src">
>    Debug.write("CHECK");
> </method>
> <handler name="oninit">
>    foo();
> </handler>
>
> "CHECK" should appear in the debug window but it doesn't.
> I double checked this so that I pasted the fragment1.lzx in the place of
> the include and the CHECK appeared.
>
> My quess is that when the type is text the content is not treated as code
> anymore but somehow escaped to a string that then disappears at same point
> in the compilation.
>
> - rami
>



-- 
Henry Minsky
Software Architect
hminsky at laszlosystems.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20091204/bc5794aa/attachment-0001.html


More information about the Laszlo-dev mailing list