jquery-templates Questions
3
Solved
I'm thinking of starting to use the jQuery template engine in my projects.
What is the difference in these two? Also, is it a good time to start using tmpl since it's still beta?
Vitek asked 24/5, 2011 at 16:9
4
Solved
i've just started using jQuery Templates as my javascript template engine. My question is, how can i format a date (returned from a ASP.NET Json ActionResult) in the form:
/Date(1288709830000)/
...
Gavan asked 3/12, 2010 at 0:48
1
Solved
Glance this JSON for a sec. Yes, it's nested like hell. And I need it to be nested to keep the data-hierarchy.
My problem is that the keys are not generic (due to C# Dictionary keys can't be the...
Steersman asked 12/9, 2011 at 11:43
3
Solved
At the moment I have a single html page that has 4 templates in it and will have many more. Is it possible to put the templates in different files and "import" them in? Can I define them in a .js f...
Serum asked 18/1, 2011 at 1:59
2
I have a search results page where I output a list of items formatted in a particular way using a MVC Razor view.
@for (int i = 0; i < group.Count(); i++) {
<div class="result">
<di...
Breadstuff asked 27/8, 2011 at 20:1
5
I might be asking too much but I'm trying to get jQuery templates with html5 elements working in ie8. I'm using head.js so that's registering the html5 elements, I also tried html5shiv but no luck....
Hovey asked 2/3, 2011 at 21:7
2
Solved
I have a simple foreach template and inside every element I want an ActionLink but that ActionLink needs to send an Id to edit the element.
The item to be templated:
<div data-bind="template: ...
Masque asked 8/8, 2011 at 21:54
4
Solved
Given
<div id="place_holder" />
<script id="template" type="text/x-jquery-tmpl">
WHAT DO I PUT HERE
</script>
var array_of_ints = [1,2,3]
$( "#template" )
.tmpl( array_of_int...
Concrescence asked 24/5, 2011 at 5:12
2
Solved
My current task is to generate and provide centralized templates for a particular DOM - for this example let's just say it's a form.
Basically I'd like to take each form element (from the labels,...
Anthraquinone asked 12/8, 2011 at 20:11
3
Solved
Using the jquery-tmpl, I want to stripe presentation of the rows by adding a class to every second one, so from data ['Cat','Dog','Horse','Noddy'] it generates:
<li>Cat</li>
<li cla...
Ilona asked 25/10, 2010 at 5:54
2
Solved
I have been working with Notepad++ for web development for a few months now. As I continue to work with it, I am more and more pleased with its setup. One thing really bothers me, though. When work...
Oared asked 17/5, 2011 at 17:59
2
Solved
I noticed that jquery's beta template plugin is using, the type attribute "text/x-jquery-tmpl"
e.g
<script type="text/x-jquery-tmpl">
I've not seen custom use of the type attribute in the...
Waterman asked 23/6, 2011 at 9:46
4
Update: after another day of digging
into this issue, I have found that the
current jQuery template lib provides
no way to do this. this article
describes a good approach.
I would still l...
Mariettemarigold asked 10/12, 2010 at 23:51
1
After some clarification I restate my question as follows.
In a jquery template I've got sth. messy like this to use a return value of a function
<p class="hidden">${$data.score = getScore(...
Curcio asked 28/6, 2011 at 11:55
1
Solved
I have a single page app. Currently my templates stored in index.html e.g.
<script id="button" type="text/html">
<a class="button" href="#" id="${id}">
${value}
</a>
</sc...
Snowshed asked 31/5, 2011 at 13:12
1
Solved
I cannot seem to get hold of the parent varible from the child template, does anyone know how?
Current code:
<li class="ui-parent-field" >
<b>${ Name }</b>
{{if Options ===n...
Demarco asked 20/5, 2011 at 12:2
1
Solved
I am using jquery templates to generate a tree structure to display a treeview of sections and items.
The structure of data looks like this, where each section has items and sections and each item...
Registrar asked 12/5, 2011 at 19:15
2
Using ASP.NET MVC: I am caught in the middle between rendering my views on the server vs in the client (say jquery templates). I do not like the idea of mixing the two as I hear some people say. Fo...
Grande asked 3/5, 2011 at 22:43
1
Solved
This is a simple example based on the code in the jquery-tmpl API docs. I'd like to use a nested {{tmpl}} tag--here the "titleTemplate". I'd like to use various helper functions in both the outer t...
Zebedee asked 25/3, 2011 at 17:0
2
Solved
I started using jQuery templates plugin (the one Microsoft created), but now I face this problem: the template is for a bunch of forms bound to an array of objects; when I change something on one o...
Lactate asked 23/2, 2011 at 20:41
3
Solved
I feel helpless. I'd like to build a table with jquery template plugin and then fill table with the data from the response which looks like this:
[
[
{Row:0,Col:0},
{Row:0,Col:1},
{Row:0,Col:2...
Hymnology asked 19/2, 2011 at 13:42
3
Solved
I'm taking a look at jQuery templates. It looks really interesting - easy syntax, easy to use, very clean.
However, I can't really see why it's better to use jQuery templates instead of simply fet...
Gasparo asked 13/2, 2011 at 7:16
4
Solved
Seems I am having some issues calling a javascript function inside a jquery template. I've got a demo set up here: http://jsfiddle.net/SXvsZ/8/
Code looks like:
function htmlDetail(){
return "he...
Lynch asked 20/1, 2011 at 1:5
2
Solved
I am trying to learn more about jQuery templates but cant seem to execute any JS calls inside the template.
<script id="log-item" type="text/x-jquery-tmpl">
{{if title.length }}
<h3 sty...
Tachograph asked 19/1, 2011 at 7:41
1
Solved
Is this technology intended for small templates or could be used to display large sets of data? Such as tables with 1000 rows and 20 columns?
How does the performance scale for cases such as thes...
Afterthought asked 4/1, 2011 at 4:46
© 2022 - 2024 — McMap. All rights reserved.