I am using JQM
and building a large lists of contacts from a webSQL
database. Currently the process is painfully slow so I am trying to use a template to see how this affects performance.
I cannot figure out how to use a Jquery
template with a WebSQL ResulSet.
This is the code so far:
function (tx, result)
{
var markup = '<li><a href="#contact">${result.Name}</a></li>';
$.template("contactTemplate", markup);
$.tmpl("contactTemplate", /* What goes here? */).appendTo($list);
}