I'm using JsRender for a project to parse JSON data into a form. I noticed jQuery Mobile did not render properly unless this code in bold appeared:
var xxx = data.JSONobject,
template = $("#someTemplate").render(xxx);
$("#someID").html(template).**jquerymobileselector("refresh");**
the problem is when I use that and I embed another template using the for statement ( {{for objectItem tmpl='#otherTemplate'/}} ), that bit of the content does not render properly with jQueryMobile.
How would I be able to refresh that bit using this code example?
So, not sure this is an issue, but there's no clear documentation that covers this kind of scenario.
I'm using JsRender for a project to parse JSON data into a form. I noticed jQuery Mobile did not render properly unless this code in bold appeared:
the problem is when I use that and I embed another template using the for statement ( {{for objectItem tmpl='#otherTemplate'/}} ), that bit of the content does not render properly with jQueryMobile.
How would I be able to refresh that bit using this code example?
So, not sure this is an issue, but there's no clear documentation that covers this kind of scenario.
Help is appreciated.
Code snippets: html:
javascript: