DragonByte Tech
Well-known member
I'm using jQuery Templates to render data sets returned by one of our mods. I attempted to define one of the templates in this way:
I require the type tag in order for jQuery Templates to recognise the script tag, and I need the ID so that my code knows which of the 5 different templates to render.
I have the following set of requirements:
Thanks!
Fillip
<xf:js type="text/x-jquery-tmpl" id="shoutboxShoutTypeMe">
but that produced a syntax error.I require the type tag in order for jQuery Templates to recognise the script tag, and I need the ID so that my code knows which of the 5 different templates to render.
I have the following set of requirements:
- If the widget is not deployed on any given page, this JS should not be added to that page
- The JS should be in the bottom, same way all the other JS from
<xf:js>
is - The rendered <script> tag should be
<script type="text/x-jquery-tmpl" id="shoutboxShoutTypeMe">
<xf:js>
?Thanks!
Fillip