[Laszlo-user] Assign text to a new button in script? Passing parent as an arguement?

Kenneth Miller xkenneth at gmail.com
Sun Jul 20 11:09:18 PDT 2008


All,

   Most of my application looks like it's going to be programatic  
instead of declarative. I'm trying to create a new button (var  
new_button = lz.button(parent),) but I'm unsure as to how to set the  
text of the button afterwards. (new_button.text = 'test') does not  
work, and looking through the reference, I didn't see any obvious  
setter methods, or in the lz.html base classes. Are there any  
tutorials on how to make a mostly programatic OpenLaszlo App?

Also, I have a button that calls a function on the onclick method, how  
can I pass the buttons parent as an argument to the function?

Regards,
Ken


More information about the Laszlo-user mailing list