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

P T Withington ptwithy at gmail.com
Sun Jul 20 13:57:36 PDT 2008


You want new_button.setAttribute('text', ...)

On Jul 20, 2008, at 14:09, Kenneth Miller <xkenneth at gmail.com> wrote:

> 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