I encountered this problem again .. I.e. am adding javascript dynamically but expresions such as
foo < bar ... gets translated into ... foo < bar ... and fails to execute ... I tried the hide from parser method as Josh mentioned but T5 was not that easy to fool ... Is there any easy way to turn off the template parsing for a portion of the .tml file !? The DOCTYPE as mentioned by Borut didn't help either. Thanks in advance Gunnar Eketrapp That system created javascript dynamiucally which fails in T5 2010/12/22 Josh Canfield <joshcanfi...@gmail.com> > Use the good old html/xml comment, used for years to hide javascript from > old browsers. > > <script> > var fromPage = '${pojo.property }'; > //<-- hide javascript from xml parser. > > // --> > </script> > On Dec 21, 2010 11:13 PM, "Gunnar Eketrapp" <gunnar.eketr...@gmail.com> > wrote: > > Hi! > > > > I am in the process of adding some jquery-ui controls. > > > > For testing purposes I added a javascript section in my TML file but I > then > > got errors like ... > > > > Failure parsing template > classpath:utskicket/pages/group/SelectMembers.tml: > > The entity name must immediately follow the '&' in the entity reference > > > > 43 }44 45 jQuery( "#tags" )46 // don't navigate away from the field on > tab > > when selecting an item47 .bind( "keydown", function( event ) {48 if ( > > event.keyCode === $.ui.keyCode.TAB &&49 $( this ).data( "autocomplete" > > ).menu.active ) {50 event.preventDefault();51 }52 })53 .autocomplete({ > > > > > > So my question is can I insert a bigger chunk of javascript and tell T5 > not > > to parse it !? > > > > Or do I have to move it to a separate .js file !? > > > > Btw T5 rocks! > > > > Thanks in Advance, > > Gunnar Eketrapp > -- [Hem: 08-715 59 57, Mobil: 0708-52 62 90] Allévägen 2A, 132 42 Saltsjö-Boo