[Seaside] Re: String concatenation in javascript

Dav lasmiste at gmail.com
Tue Jun 4 16:19:24 UTC 2013


Yep Winfried, it's something I'm wondering about, thanks for the suggestion,
I'm going to implement it
Dave


Winfried Jacobs-2 wrote
> Hello Dave,
> 
> with a little extra method in JSObject (*) you could even write it
> completely in
> Smalltalk:
> 
>    html anchor
>        onClick: (
>            (html jQuery id: 'textAreaId') value: (
>                html jQuery id: 'textAreaId') value + 'some text'
>                );
>        with: 'a label'.
> 
> 
> (*) Method #+ in JSObject defined like this:
> 
> + anObject
>     "Combine the receiver and anObject with a plus sign"
> 
>     self addDecoration: (JSBinary new operator: '+'; statement: anObject)
> 
> 
> Best regards
> Winfried
> 





--
View this message in context: http://forum.world.st/String-concatenation-in-javascript-tp4691470p4691624.html
Sent from the Seaside General mailing list archive at Nabble.com.


More information about the seaside mailing list