Hi,

 

I need some help. I am new at Laszlo. 

My platform is Windows7 Ultimate and using Laszlo 4.6.1.

 

I am trying to recreate the example in the Webcast video
(OpenLaszlo4ProgrammingTutorial213.flv) and the code that seems to fly on
the video gives me several errors that I can't really understand.

 

ERROR @new_file.lzx#18: call to undefined function 'Childwindow' 

ERROR @new_file.lzx#19: reference to undefined variable 'childwindow' 

ERROR @new_file.lzx#19: undefined object does not have a property 'datapath'


WARNING @new_file.lzx#19: reference to undefined property 'datapath' 

ERROR @new_file.lzx#19: undefined object does not have a property
'setFromPointer'

Have tried swf8, 9 and 10 and DHTML with different results and different
errors.

 

The question is can one window have several instances of child windows open
simultaneously? And if Yes how to accomplish it. Please take note I have
copied the example demonstrated in the video.

 

Any help is greatly appreciated.

 

pedro

 

<?xml version="1.0" encoding="UTF-8" ?>

<canvas debug="true">

 

      <dataset src="http:prokb.xml" name="dsprokb" request="true" />

      <window name="main" title="ProKB" width="300"

                  height="250" resizable="true"

                  closeable="false" >

                  

 

            <view>

 

                  <text onmouseover="this.setBGColor( 0xDDDFF )"

                          onmouseout="this.setBGColor ( null )">  

                        <datapath xpath="dsprokb:/ROW/PROKB/@DESCRIPTION"

                                          replication="lazy"/>

                        

                          <handler name="onclick">

                                    var child = new Childwindow ( canvas );

                                    childwindow.datapath.setFromPointer (
this.datapath );

                          </handler>      

                  </text>

            </view>

            <scrollbar/>

      </window>

      

      <class name="Childwindow" extends="window"

                x="${ main.x + main.width }" resizable="true"

                  title="$path{ '@KBID' }"

                  width="400" height="250"

                  closeable="true" >

                  

                  <method name="close">

                        putAway.doStart();

                  </method>

                  

                  <animatorgroup name="putAway" process="sequential"
duration='300'

                                       start="false">

                              <animator attribute="height" to="50"/>

                              <animator attribute="y" to="-50"/>

                  </animatorgroup>

                  <simplelayout/>

                  

                        <text datapath="@TEXT" fontsize="14" width="100%"

                                multiline="true"/>

      </class>

</canvas>

 

Reply via email to