I get back (void 0). The definition is taking, it works from other
places inside the script tag. It sounds like the function isn't being
attached as a global in IE 7...
-Max
P T Withington wrote:
So it's not the evalCarefully. What if you Debug.write(loctest) at the
call site? Maybe the definition is not taking for some reason, security
or something?
On 2007-01-05, at 16:07 EST, Max Carlson wrote:
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?
--
Regards,
Max Carlson
OpenLaszlo.org