Er, not reference, but, rather, create an instance of.  Sorry.
Grabbed the wrong word.  What I mean is:

In second.lzx:

<library>
    <class name="myWindow"/>
        <window width="400" height="500"/>
    </class>
</library>

In first.lzx:

<canvas>
    <include href="second.lzx"/>

    <view>
        <myWindow>
    <view>

</canvas>

On 5/15/06, J Crowley <[EMAIL PROTECTED]> wrote:
> Try enveloping second.lzx in a <library></library> tag instead of a
> <canvas></canvas> tag.  Also, put the "include" near the beginning of
> the file, right after <canvas debug="true">, make the window element
> in second.lzx a class, and just reference the class where you want it
> placed within the views.
>
> -JC
>
> On 5/15/06, Chandra Shekhar Reddy Potula
> <[EMAIL PROTECTED]> wrote:
> >
> > Hai,
> >
> > I have a requirement in the following a way:
> >
> > My first.lzx file contains below code:
> > <canvas debug="true">
> >      <view>
> >           <include href="second.lzx"/>
> >        </view>
> > </canvas>
> >
> > and second.lzx contains the following code:
> >
> > <canvas>
> >      <window width="400" height="500" title="Test Window"/>
> > </canvas>
> >
> > if  you run first.lzx it is giving compilation warning says that "element
> > "canvas" not allowed in this context. Check whether it is spelled correctly,
> > and whether a class with this name exists"
> >
> > Is laszlo going to support embedding one file into another file where both
> > files contains <canvas> tag.
> >
> > Thanks in Advance,
> >
> >
> >
> >
> >  ________________________________
> >  Why was V. Sehwag warned by the BCCI? Share your knowledge on Yahoo!
> > Answers India
> >  Send instant messages to your online friends - NOW
> >
> >
> > _______________________________________________
> > Laszlo-user mailing list
> > [email protected]
> > http://www.openlaszlo.org/mailman/listinfo/laszlo-user
> >
> >
> >
>

_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user

Reply via email to