[Laszlo-user] create a class by name

Ruben Reusser rr at headwire.com
Fri Oct 12 11:12:15 PDT 2007


Hi:

Is it possible to create a class by name in OpenLaszlo? I tried:

eval("new TestClass()");

but this does not work. The only solution I could find was the following:

loader.request( { lz_load : false,lzt : "eval",proxied: true,url: 
"__debugger.lzx",lz_script : "#file interactive-eval-0\nnew 
TestClass()"} );   


not my favorite approach.

Ruben



More information about the Laszlo-user mailing list