{"id":6920,"date":"2014-05-11T17:45:23","date_gmt":"2014-05-11T17:45:23","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/05\/11\/jsrender-and-paging-collection-of-common-programming-errors\/"},"modified":"2014-05-11T17:45:23","modified_gmt":"2014-05-11T17:45:23","slug":"jsrender-and-paging-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/05\/11\/jsrender-and-paging-collection-of-common-programming-errors\/","title":{"rendered":"jsRender and paging-Collection of common programming errors"},"content":{"rendered":"<p>I am trying to get <strong>jsRender<\/strong> and paging to work, but I am somewhat new to jsRender and jquery for that matter. I have tried to modify <strong>this<\/strong> to work with jsRender instead, but I am having only limited success.<\/p>\n<ol>\n<li>I am getting an exception when I click the &#8220;next page&#8221; link (see the code). The exception is &#8220;JsRender Error: Unknown template: &#8220;#items&#8221; &#8211; I think it happens because the code is overwritten on subsequent data fetch, but I am not sure how to fix it &#8211; any help is appreciated.<\/li>\n<li>Can anybody suggest some hints to create a numeric paging mechanism as well? E.g. &#8220;&gt; &#8211; clicking on the &#8220;&#8230;&#8221; will reset the numerics to &#8220;<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>I am trying to get jsRender and paging to work, but I am somewhat new to jsRender and jquery for that matter. I have tried to modify this to work with jsRender instead, but I am having only limited success. I am getting an exception when I click the &#8220;next page&#8221; link (see the code). [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6920","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6920","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=6920"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6920\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6920"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6920"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6920"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}