[Seaside] Re: String concatenation in javascript

Robert Sirois watchlala at hotmail.com
Tue Jun 4 01:05:36 UTC 2013


Try adding parens like this (untested):
html anchor onClick: ((html jQuery id: 'textAreaId') value: ((html jQuery id: 'textAreaId') value), 'some text'); with: 'a label'.
It looks like the parser thinks that ... value, 'some text'... is two separate JavaScript statements, which is not your intent.
RS

> Date: Mon, 3 Jun 2013 17:43:38 -0700
> From: lasmiste at gmail.com
> To: seaside at lists.squeakfoundation.org
> Subject: [Seaside] Re: String concatenation in javascript
> 
> I resend the message because the format was not correct.
> 
> 
> Hi,
>  I'm trying to update a textarea and I wrote this code:
> html anchor onClick: ((html jQuery id: 'textAreaId') value: (html jQuery id:
> 'textAreaId') value , 'some text'); with: 'a label'.
> 
> Unfortunately it generates this html:
> a label  
> 
> Instead I need an html like:
> a label 
> 
> i.e a string concatenation in javascript (see plus sign instead of
> semicolon).
> 
> I can't find anything on seaside image.
> Can you help me?
> 
> Cheers
>  Dave
> 
> 
> 
> 
> --
> View this message in context: http://forum.world.st/String-concatenation-in-javascript-tp4691470p4691471.html
> Sent from the Seaside General mailing list archive at Nabble.com.
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20130603/0503b23c/attachment.htm


More information about the seaside mailing list