Re: Smarty + JavaScript

From: Date: Sat, 08 Sep 2001 16:27:36 +0000
Subject: Re: Smarty + JavaScript
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-66534@lists.php.net to get a copy of this message
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" <a@deruwe.be> wrote in message news:20010908153347.5D7199BB4B@pop3.telenet-ops.be... > 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.

« previous php.general (#66534) next »