Scripting Helma
trying the following code results in a [property "text" is not defined for
HopObject] error:
"Hello, World!") as when i am using a simple javascript object, which works fine
as with the following code:
[via tobi @bugzilla.helma]
HopObject] error:
var s = createSkin(' [Macro not allowed in sandbox: o.text] ');
var o = new HopObject();
o.text = "Hello, World!";
res.handlers.o = o;
renderSkin(s);
i expected to get the same result (ie. the h.text macro being replaced by"Hello, World!") as when i am using a simple javascript object, which works fine
as with the following code:
var s = createSkin(' [Macro not allowed in sandbox: o.text] ');
var o = {text: "Hello, World!"};
res.handlers.o = o;
renderSkin(s);
didn't expect this work, but it would be a cool feature.[via tobi @bugzilla.helma]
matthias - 1. Mar, 10:07
2 comments - add comment - 0 trackbacks






