{literal} + variabel
| From: | Mattias Hallström | Date: | Sun, 04 May 2003 10:13:12 +0000 |
| Subject: | {literal} + variabel | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-9464@lists.php.net to get a copy of this message | ||
Hi,
I am trying to assign a string variable to a javascript which is inside
{literal}-tags.
But that is not possible when I have the {litaral} around it.
Am I trying to do this in the wrong way?
Would appriciate if someone could help me out in the right direction :-)
{literal}
<script language="JavaScript">
<!--
function fix(id)
{
var accessoryId = Array ( {$test} );
.....................
}
//-->
</script>
{/literal}
------------------------------
{$test} is a string like this: "5", "6", "4".
//Mattias