|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
xani Smarty Rookie
Joined: 28 Apr 2009 Posts: 10
|
Posted: Thu Jan 28, 2010 11:47 am Post subject: Hi everybody you might have time and give me help for this ? |
|
|
I'm trying to add a javascript on my index.php. My site is all with smarty and it doesn't allow me to add the javascript code. so if you can please help me a bit how to add the javascript so that smarty will recognize it ? |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Thu Jan 28, 2010 5:59 pm Post subject: |
|
|
{literal} ... javascript here ... {/literal} |
|
Back to top |
|
jstewart Smarty n00b
Joined: 26 Feb 2010 Posts: 2
|
Posted: Fri Feb 26, 2010 11:27 pm Post subject: |
|
|
Keep your javascript in an external file. Include it in your html:
<script type="text/javascript" src="yourjavascript.js"></script> |
|
Back to top |
|
cyclerider Smarty n00b
Joined: 20 Apr 2010 Posts: 4
|
Posted: Tue Apr 20, 2010 2:35 pm Post subject: |
|
|
morht is right |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|