[Seaside] Changing button text on the fly?

Ramon Leon ramon.leon at allresnet.com
Tue Sep 18 16:44:41 UTC 2007

> On Sep 18, 2007, at 12:42 AM, Lukas Renggli wrote:
> >> I would like this to happen without submitting a form, but 
> just use 
> >> the ajax callback.
> >
> > html element id: 'theButton'; access: 'value'; assign: 'New Text'
> Thanks for responding Lukas. This works great for a input 
> type=submit style, but not for a <button></button> tag. Do 
> you have any idea what attribute I would access to change the 
> content? 'value' doesn't do it, nor does 'text'.

Let's not forget that all of the event handlers take ordinary JavaScript.
You can easily say 

onClick: 'this.innerText = "BlaBla"'

All that fancy scriptaculous stuff in Smalltalk just generates JavaScript
strings, so don't get stuck trying to figure out how to express everything
in Smalltalk.  Sure, it's nice, but sometimes you just need to drop into
JavaScript and do what you need to do.

Ramon Leon

More information about the seaside mailing list