By: tobi
Date: 2006-10-29
Time: 17:33
|
Usage of ' and "
hi, i am sure this question exists already, but i dont know to search with which word or phrase.
I often use the "when, then" or the "if, then" construction.
the problem is that i cant use the ' quote, which i need for javascript or something like this.
how can i realize this?
[var.test; if [val] == 'yes'; then '<a onclick="check(this.value, 'width=100'); return false;">']
can i use ` or something like \' ??
or any other solution?
|
By: tobi
Date: 2006-10-30
Time: 14:50
|
Re: Usage of ' and "
do i make a mistake, when i am writing a template like this??
is there a better style?
|
By: Skrol29
Date: 2006-10-30
Time: 18:06
|
Re: Usage of ' and "
Hello,
You have to use two simple quotes in a TBS string to protect it.
[var.test; if [val] == 'yes'; then '<a onclick="check(this.value, ''width=100''); return false;">'] |
But if you'd like to not arrange the HTML sourcen then you can play with parameter magnet.
<a onclick="check(this.value, 'width=100'); return false;">
[var.test;if [val]=='yes';then ' ';else '';magnet=a] click here </a>
|
|
By: Tobi
Date: 2006-11-12
Time: 23:47
|
Re: Usage of ' and "
And that do I have to do if I have two if-constructions, which are interleaved??
[menu.id;block=tr;
if [val]!='new';then '
<img src="[menu.test;block=tr; if[val]=="1"; then 'jo.jpg'; else 'no.jpg']">
';else '']
|
|
|
Posting in progress.
Please wait...
|