PDA

View Full Version : dont' know how to solve this compiler error


MBachstein
07-23-2008, 06:41 AM
Hello,

I have this source code, which displays HTML content.


<canvas height="550">
<view name="myView" bgcolor="0x111111">
<simplelayout axis="x" spacing="5" inset="5"/>
<html name="myHTML" height="500" width="500" bgcolor="0xDDDDDD"/>

<button text="Display HTML">
<handler name="onclick"><![CDATA[
var htmlContent = "<html><body>Hello World! <p class=default>HTML</p><p class=default><span style=\"color: #FF0000; font-size: 26pt; font-family: Verdana\"><u>big and red</u></span></p></body></html>";
Debug.write("display HTML="+htmlContent);

var theiframeID = this.parent.myHTML.iframeid;
Debug.write("theiframeID="+theiframeID);

LzBrowser.loadJS("document.getElementById('" + theiframeID + "').contentWindow.document.body.innerHTML = '" + htmlContent + "';");
]]>
</handler>
</button>
</view>
</canvas>


On start the compiler throws an error. Can anybody tell me how I can solve this error or what this error means?


ERROR @extensions/html.lzx#180: $5_el has no properties


The bug report of this error is:

---START OF BUG REPORT---

LPS VERSION INFORMATION:
URL: http://localhost:8080/jivexweb/jivex...backtrace=true
Version: 4.1.0.0
Release: Production
Build: 10138-openlaszlo-trunk
Date: 2008-06-30T09:16:23-0700
Target: dhtml
Runtime: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14

ERROR MESSAGE: ERROR @extensions/html.lzx#180: $5_el has no properties

ERROR BACKTRACE:
kernel/dhtml/LzMouseKernel.js#177/26 @lfc/kernel/dhtml/LzMouseKernel.js#178
this: «Object#7| #LzMouseKernel»
arg 0: false
kernel/dhtml/LzMouseKernel.js#166/31 @lfc/kernel/dhtml/LzMouseKernel.js#167
this: «Object#7| #LzMouseKernel»
$lzc$handle_onmouseover$$extensions$2Fhtml$2Elzx_1 76_72_$m21 @extensions/html.lzx#180
this: «lz.HTML_View#12| .myHTML»
arg 0: «lz.HTML_View#12| .myHTML»
sendEvent @lfc/events/LaszloEvents.lzs#525
this: «LzEvent#15| #LzGlobalMouse.onmouseover»
arg 0: «lz.HTML_View#12| .myHTML»
__mouseEvent @lfc/services/LzGlobalMouse.lzs#163
this: «LzGlobalMouseService#16| #LzGlobalMouse»
arg 0: 'onmouseover'
arg 1: «lz.HTML_View#12| .myHTML»
handleMouseEvent @lfc/services/LzModeManager.lzs#130
this: «LzModeManagerService#21| #LzModeManager»
arg 0: «lz.HTML_View#12| .myHTML»
arg 1: 'onmouseover'
rawMouseEvent @lfc/services/LzModeManager.lzs#245
this: «LzModeManagerService#21| #LzModeManager»
arg 0: 'onmouseover'
arg 1: «lz.HTML_View#12| .myHTML»
kernel/dhtml/LzMouseKernel.js#63/19 @lfc/kernel/dhtml/LzMouseKernel.js#65
this: «Object#7| #LzMouseKernel»
arg 0: 'onmouseover'
arg 1: «lz.HTML_View#12| .myHTML»
LzSprite.prototype.__mouseEvent @lfc/kernel/dhtml/LzSprite.js#912
this: «kernel/dhtml/LzSprite.js#14/16#29#28| {owner: HTML_View name: myHTML , uid: 2, ..., width: 500, _w: 500px, height: 500, _h: 500px, bgcolor: 14540253, ..., visible: true, ..., clickable: true, ..., x: 5, _x: 5px}»
arg 0: «MouseEvent#30| [object MouseEvent]»
LzSprite.prototype.__clickDispatcher @lfc/kernel/dhtml/LzSprite.js#827
this: «HTMLDivElement#33| #document/html/body/div#lzappContainer[1]/div#click_sprite_0[2]/div#click_sprite_1[1]/div#click_sprite_2[1]/div.lzclickdiv»
arg 0: «MouseEvent#30| [object MouseEvent]»

OBJECT DETAILS:
...

---END OF BUG REPORT---


I already posted in this forum a few weeks ago:
http://forum.openlaszlo.org/showthread.php?t=12119

Kind Regards,
Marc

senshi
07-23-2008, 07:43 AM
Sorry, can't repro under "4.1.1.0"...

MBachstein
07-23-2008, 11:16 PM
just click 5-6 times on "Display HTML" and wait for a few seconds. Then the compiler error appears.