2013-03-04, 11:59:27
hello guys,
i use a template with a normal menu and a click-event which is created by jQuery. for every click on a menuitem (= page) should a defined html-area filled with page-content from cms without pagerefresh (with a page-id as identifier). how can i do this?
i can only load content via php with or is there another way to load content via JS/jQuery/Ajax?
thanks at all!
i use a template with a normal menu and a click-event which is created by jQuery. for every click on a menuitem (= page) should a defined html-area filled with page-content from cms without pagerefresh (with a page-id as identifier). how can i do this?
i can only load content via php with
Code:
getPageContent('slug');
Code:
var html = "needed page content";
$('.content-inner').html(html);
thanks at all!