Forums / Setup & design / Question on concat string

Question on concat string

Author Message

Bill Smith

Tuesday 26 December 2006 2:08:11 am

hi,all

I found that the outputs of concat string are without ""

for example, the result of <input type="button"
onClick={concat("window.location = 'content/view/",$object.id," ' ")}>

will got sth like <input type="button" onClick=window.location ='content/view/234'>

is there api can help to achieve the result that
<input type="button" onClick="window.location ='content/view/234' ">, thanks

Claudia Kosny

Tuesday 26 December 2006 2:41:57 am

Hi Bill

I am not sure why you need an operator to do this. Either just write the quotation marks around the call to concat:

onClick=<b>"</b>{concat("window.location = 'content/view/",$object.id," ' ")}<b>"</b>>

or, if it is necessary, just concat the quotation marks as well:

onClick={concat(<b>'"', </b>"window.location = 'content/view/",$object.id," ' "<b>, '"'</b>)}>

(<b>'"'</b> is a double quotation mark surrounded by single quotation marks)

Claudia