[Laszlo-dev] DHTML script error on build 1706.

BLISHEN Aaron Aaron.BLISHEN at publicworks.qld.gov.au
Wed Aug 30 23:32:07 PDT 2006


Hi All,
I receive the following javascript error targeting DHTML

(Line 654) $4.make is not a function.

Cheers,

Aaron.



[SNIP]
var $4=global[$1.name]
var $5=null
if($4){
$5=$4.make(this,$1.attrs,"children" in $1?$1.children:null,$2)
}
return $5
},setters:{name:"setName",id:"setID",$events:"__LZsetEvents",$refs:"__LZ
storeRefs",$delegates:"__LZstoreDelegates",placement:-1,datapath:"setDat
apath",$setters:-1,$classrootdepth:"__LZsetClassRoot",$datapath:"__LZmak
eDatapath"},__LZsetClassRoot:function($1){
if(!$1){
return
}
[/SNIP]



LZX:
 
<canvas width="1200" height="800" bgcolor="gray">
  <!-- List of reports -->
  <dataset name="dsReports">
    <reports>
      <report id="1" name="Report 1" description="Test report 1"/>
      <report id="2" name="Report 2" description="Test report 2"/>
    </reports>
  </dataset>
 
  <class name="TableHeader" bgcolor="0x9BA9B1">
    <attribute name="defaultplacement" value="content" type="string"/>
    <view name="content" bgcolor="0xEEF0EB" x="2" y="2"
      width="${parent.width-4}" height="${parent.height-4}">
    </view>
  </class>
 
  <class name="TableContent" bgcolor="0x9BA9B1" clip="true">
    <attribute name="defaultplacement" value="content" type="string"/>
    <view name="content"/>
    <scrollbar/>
  </class>
 

  <class name="Cell" bgcolor="${parent.bgcolor}" height="23">
    <attribute name="defaultplacement" value="content" type="string"/>
    <view y="3" name="content"/>
  </class>
 

  <method name="openReport" args="reportId">
        reportWindow.showReport(reportId);
  </method>
  <!-- Report -->
  <simplelayout axis="y" spacing="5"/>
  <view name="navigation" x="5" width="${parent.width-10}" height="40"
bgcolor="#163b67">
    <view x="10" y="3">
      <text fontsize="24" fontstyle="bold" fgcolor="#FFFFFF">Test
Reports DHTML</text>
    </view>
    <view x="920" y="8">
      <simplelayout axis="x" spacing="4"/>
      <text fontsize="12" fontstyle="bold" fgcolor="#FFFFFF">Test</text>
      <text fontsize="12" fontstyle="bold"
fgcolor="#FFFFFF">DHTML</text>
      <text fontsize="12" fontstyle="bold"
fgcolor="#FFFFFF">Output</text>
    </view>
  </view>
 
  <TableHeader x="5" width="${parent.width-10}" height="40">
    <view name="headerline1" y="5" width="${immediateparent.width}"
height="20" bgcolor="0xEEF0EB">
      <simplelayout axis="x" spacing="2"/>
      <Cell width="250">
        <text fontstyle="bold">Report Name</text>
      </Cell>
      <Cell width="650">
        <text fontstyle="bold">Description</text>
      </Cell>
    </view>
  </TableHeader>
 
  <TableContent x="5" width="${parent.width-10}" height="350">
    <simplelayout axis="y" spacing="1"/>
    <view x="1" width="${parent.width-1}" height="30" bgcolor="0x9BA9B1"
name="row">
      <datapath xpath="dsReports://reports/report"/>
 
      <view x="1" y="1" width="${parent.width}" height="29"
bgcolor="white">
        <simplelayout axis="x" spacing="2"/>
        <Cell width="250">
          <text width="${parent.width}" fontstyle="bold"
datapath="@name" clickable="true">
            <method event="onclick">
                canvas.openReport(datapath.xpathQuery('@id'));
            </method>
          </text>
        </Cell>
        <Cell width="650">
          <text width="${parent.width}" datapath="@description"/>
        </Cell>
      </view>
    </view>
  </TableContent>
 
  <window name="reportWindow" x="0" y="0" width="1200" visible="false"
height="600" bgcolor="#163b67" closeable="true">
    <method name="showReport" args="reportId">
      <![CDATA[
            var validReportId = true;
            Debug.write('Open report ' + reportId);
            this.open();
        ]]>
    </method>
    <view name="content" width="${parent.width}"
height="${parent.height}" bgcolor="${parent.bgcolor}">
      <text>This will display the report</text>
    </view>
  </window>
 
</canvas>
 
 
***************************** Disclaimer *****************************

The contents of this electronic message and any attachments are intended only for the addressee and may contain privileged or confidential information. They may only be used for the purposes for which they were supplied. If you are not the addressee, you are notified that any transmission, distribution, downloading, printing or photocopying of the contents of this message or attachments is strictly prohibited. The privilege of confidentiality attached to this message and attachments is not waived, lost or destroyed by reason of mistaken delivery to you. If you receive this message in error please notify the sender by return e-mail or telephone.

Thank you.



More information about the Laszlo-dev mailing list