[Laszlo-dev] IE 7 DHTML failing to reference global function with debugger on
Max Carlson
max at openlaszlo.org
Fri Jan 5 13:07:27 PST 2007
Here's the actual error from IE 7:
Line: 583
Object Does not support this property or method
And here are the surrounding lines. bit - it appears to be failing to
reference loctest():
LzInstantiateView({attrs: {bgcolor: 16776960, name: "view12"}, children:
[{attrs: {bgcolor: 32768, height: 20, name: "v1", width: 10}, children:
[{attrs: {$delegates: ["onstop", "$m5", null], $m5: function
$lztest$2Dview$2Elzx_111_32_$m5 () {
with (this) {
Debug.evalCarefully("lztest-view.lzx", 113, function () {
return LzTestManager
}, this).assertEquals(110, Debug.evalCarefully("lztest-view.lzx", 113,
function () {
return view12
}, this).width, "view12.width failure (onstop)");
Debug.evalCarefully("lztest-view.lzx", 114, function () {
return LzTestManager
}, this).assertEquals(20, Debug.evalCarefully("lztest-view.lzx", 114,
function () {
return view12
}, this).height, "view12.height failure (onstop)");
---> loctest("view12.v1 (onstop)",
Debug.evalCarefully("lztest-view.lzx", 115, function () {
return view12
}, this).v1, [100, 0, 10, 20])
}
}
Note that it fails even if I strip out the arguments to loctest().
Also, IE 6 doesn't give me any grief.
-Max
P T Withington wrote:
> I've seen cases where js engines just can't grok what is being done in
> evalCarefully. It seems to confuse their tiny brains. Do you have any
> more info on what th error is?
>
> On 2007-01-05, at 15:17 EST, Max Carlson wrote:
>
>> http://192.168.1.120:8080/legals/test/lztest/lztest-view.lzx?lzr=dhtml
>> fails on line 115 in IE7:
>>
>> loctest("view12.v1 (onstop)", Debug.evalCarefully("lztest-view.lzx",
>> 115, function () {
>> return view12
>> }, this).v1, [100, 0, 10, 20])
>>
>> loctest() is declared in a script block on the canvas.
>>
>> If I remove debug="true" from the canvas and run the app without the
>> debugger it works well. This points to a debugger issue in IE 7
>> DHTML. Anyone know why this might be?
More information about the Laszlo-dev
mailing list