>From the smarty manual
{literal}
<script language=javascript>
<!--
function isblank(field) {
if (field.value == '')
{ return false; }
else
{
document.loginform.submit();
return true;
}
}
// -->
</script>
{/literal}
Alternately use ldelim,rdelim
Bye, John
"Alexander Deruwe" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hey all,
>
> If anyone else out there is using Smarty as templating engine, how do you
put
> JavaScript into the template? It seems to barf on the opening and closing
> braces of every JS function, rendering JS totally useless. I must be
missing
> something.
>
> ad.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]