Page 1 of 1
where to upload my js file
Posted: Fri Jan 07, 2011 11:35 pm
by Tracy
I am trying to use the accordian in my header. I have had it working but now I have my template and stylesheets in CMS I don't know where to upload my js file. I cannot get it working. This goes in the head <__script__ type="text/javascript" src="haccordion.js">
What folder in my tree should I place the file in. I'm sure I've tried them all. The site is at
www.nepaledfund.ca
CMS version 1.9.2
Re: where to upload my js file
Posted: Fri Jan 07, 2011 11:47 pm
by Nullig
You can put it in your uploads directory and then change the path in your script tag to:
<__script__ type="text/javascript" src="/uploads/haccordion.js">
Nullig
Re: where to upload my js file
Posted: Sat Jan 08, 2011 12:14 am
by Tracy
Thanks, I just tried that and it still isn't working. Also, I get this message
string(165) "Smarty error: [in tpl_head:23 line 24]: syntax error: unrecognized tag: margin:0 1px 0 0; /*Spacing between each LI container*/ (Smarty_Compiler.class.php, line 446)" string(111) "Smarty error: [in tpl_head:23 line 24]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)" string(175) "Smarty error: [in tpl_head:23 line 26]: syntax error: unrecognized tag: padding: 0px; /*Padding inside each content*/ background: beige; (Smarty_Compiler.class.php, line 446)" string(111) "Smarty error: [in tpl_head:23 line 26]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)" string(213) "Smarty error: [in tpl_head:23 line 33]: syntax error: unrecognized tag: accordionid: 'hc1', //main accordion div id paneldimensions: {peekw:'151px', fullw:'600px', h:'300px' (Smarty_Compiler.class.php, line 446)" string(111) "Smarty error: [in tpl_head:23 line 33]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)"
Any other ideas? Thanks
Re: where to upload my js file
Posted: Sat Jan 08, 2011 4:41 am
by Nullig
Looks like you have an error in your template (a style tag in the head portion)- can you post it?
If it is a style tag, you need to surround it with {literal}...{/literal} tags.
I think it's here:
Code: Select all
<style>
<!--
body{font-family:arial,sans-serif}.fs{border-left:9px solid}.sq .fs{border-left-color:#74dd82}.msg{}
td{font-family:arial,sans-serif}.cbln{background-image:url(images/card_left_new.gif);background-position:left;background-repeat:repeat-y}.cbln{padding:0 1 0 0}.mb{font-size:80%;padding:6 8 10 14;width:100%}.sg{color:#888888}-->
</style>
You would need to do this:
Code: Select all
{literal}
<style>
<!--
body{font-family:arial,sans-serif}.fs{border-left:9px solid}.sq .fs{border-left-color:#74dd82}.msg{}
td{font-family:arial,sans-serif}.cbln{background-image:url(images/card_left_new.gif);background-position:left;background-repeat:repeat-y}.cbln{padding:0 1 0 0}.mb{font-size:80%;padding:6 8 10 14;width:100%}.sg{color:#888888}-->
</style>
{/literal}
Nullig