|
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 |
Swiftys Smarty n00b
Joined: 02 Sep 2014 Posts: 2
|
Posted: Tue Sep 02, 2014 2:40 pm Post subject: Smarty Error : "unrecognized tag" |
|
|
Hello all,
I'm new on this forum and i need your help for a minor problem :
Code: | Fatal error: Smarty error: [in /Applications/XAMPP/xamppfiles/htdocs/URL line 56]: syntax error: unrecognized tag: $('.depot-active').toggleClass('depot-active'); $(this).toggleClass('depot-active'); var Id = $(this).find('input[type=radio]').attr('id'); document.getElementById(Id).click(); (Smarty_Compiler.class.php, line 921) in /Applications/XAMPP/xamppfiles/htdocs/engine/classes/Smarty/Smarty.class.php on line 2199 |
Here my part of code which cause the problem :
Code: | <script>
$('.depot-box').click(function () {
$('.depot-active').toggleClass('depot-active');
$(this).toggleClass('depot-active');
var Id = $(this).find('input[type=radio]').attr('id');
document.getElementById(Id).click();
});
</script> |
If anyone can help me please tell me .
Regards,
Swiftys. |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Tue Sep 02, 2014 4:20 pm Post subject: |
|
|
see http://www.smarty.net/docsv2/en/language.escaping.tpl
Code: |
<script>
{literal}
$('.depot-box').click(function () {
$('.depot-active').toggleClass('depot-active');
$(this).toggleClass('depot-active');
var Id = $(this).find('input[type=radio]').attr('id');
document.getElementById(Id).click();
});
{/literal}
</script> |
|
|
Back to top |
|
Swiftys Smarty n00b
Joined: 02 Sep 2014 Posts: 2
|
Posted: Tue Sep 02, 2014 4:27 pm Post subject: |
|
|
What a fool I am !!! it must be because of all those hours of coding, because of tag that I put in every time and more why I have not seen that I forgot this time ..
Thank you very much.
Regards,
Khamuls |
|
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
|