Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Smarty Error : "unrecognized tag"

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
Swiftys
Smarty n00b


Joined: 02 Sep 2014
Posts: 2

PostPosted: Tue Sep 02, 2014 2:40 pm    Post subject: Smarty Error : "unrecognized tag" Reply with quote

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 Sad.

Regards,

Swiftys.
Back to top
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5068
Location: Hamburg / Germany

PostPosted: Tue Sep 02, 2014 4:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
Swiftys
Smarty n00b


Joined: 02 Sep 2014
Posts: 2

PostPosted: Tue Sep 02, 2014 4:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP