PDA

View Full Version : Laszlo base class errors


rajs1
10-19-2004, 05:35 AM
I wrote a class that extends modaldialog


<class name="MyDialog" extends="modaldialog" id="a19" title="My Title">
<attribute name="foo" value="null" type="string" />
<simplelayout spacing="10"/>
<text width="200" multiline="true">
Some text to go here

<a href="http://myserver/bar.html" target="_blank"><u>with a URL link</u></a>
</text>
<view align="right" layout="axis:x; spacing:10">
<button isdefault="true">Button 1
<method event="onclick">
Debug.write(parent.parent.foo);
parent.parent.close();
LzBrowser.loadURL( foo );
</method>
</button>
<button onclick="parent.parent.close()">Button 2</button>
</view>
</class>



When I run it with debugging on I get the following when I click on "button 1"

base/basewindow.lzx:167: reference to undefined variable 's'
http://localhost:8080/lps-2.2/my-apps/foo.exe
base/basewindow.lzx:184: reference to undefined variable 's'
base/basewindow.lzx:184: undefined object does not have a property 'visible'
base/basewindow.lzx:184: reference to undefined property 'visible'
base/basewindow.lzx:193: reference to undefined variable 's'
base/basewindow.lzx:193: undefined object does not have a property 'visible'
base/basewindow.lzx:193: reference to undefined property 'visible'


Will this cause trouble (memory leaks etc?).

Same thing happens when I extend a tabpane, I get the following error in that instance:


lz/windowpanel.lzx:253: reference to undefined property 'textcolor'


Thanx.