johnh Posted February 10, 2007 Share Posted February 10, 2007 Hello, When I use some javascripts on templates, it shows error and does not work. Also even I import on template files, it still.. How can I use any javascripts on template? Thanks 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted February 10, 2007 WHMCS CEO Share Posted February 10, 2007 Like this: {literal} <script language="JavaScript"> function myFunction() { alert("Hi!"); } </script> {/literal} The use of the literal tag in the template stops any curly brackets { being treated as template field names. 0 Quote Link to comment Share on other sites More sharing options...
ozmo Posted March 8, 2007 Share Posted March 8, 2007 cool... I need this one also 0 Quote Link to comment Share on other sites More sharing options...
Ulysses Posted March 30, 2007 Share Posted March 30, 2007 Snap! me three. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.