Hello, i know, there is many post about this, all for different purposes, mainly post about json and infinite loading for blog post or portfolio etc… What i’m looking for is a simple ajax call inside a container, i want to call the template content inside it without reloading header (and menu) and footer. I want to use backbone router to do this.
Hi,
I can’t answer it for Backbone but for jQuery.
For loading a template without header or other stuff ask for ajax: <?php if(!r::ajax()) { //you header snippet call } ?>
Here an example for jquery ajaxload: