[Seaside] Re: String concatenation in javascript
Dav
lasmiste at gmail.com
Tue Jun 4 15:23:19 UTC 2013
Johan Brichau-2 wrote
> The JSObject>>, is for concatenating generated javascript expressions. If
> you want to generate a javascript expression that does string
> concatenation, you need to write actual javascript.
> Afaik, there is no Seaside method to generate string concatenation
> expressions.
I guess you are right
> I'm not seeing the stuff you might have pasted in your email correctly,
The expressions was:
Unfortunately it generates this html:
a label
Instead I need an html like:
a label
> but this is how I would write your expression:
>
> html anchor
> onClick: ((html jQuery id: 'textAreaId') value: (JSStream on:
> '$(''#textAreaId'').value()+''some text'' '));
> with: 'a label'.
>
>
> cheers,
> Johan
Thanks Johan it works, even if there is a typo: value() instead of val()
The right one is:
html anchor
onClick: ((html jQuery id: 'textAreaId') value: (JSStream on:
'$(''#textAreaId'').val()+''some text'' '));
with: 'a label'.
Cheers,
Dave
--
View this message in context: http://forum.world.st/String-concatenation-in-javascript-tp4691470p4691616.html
Sent from the Seaside General mailing list archive at Nabble.com.
More information about the seaside
mailing list