GetSimple Support Forum

Full Version: Load PageContent via JS/jQuery/Ajax
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
Code:
getPageContent('slug');
or is there another way to load content via JS/jQuery/Ajax?

Code:
var html = "needed page content";
$('.content-inner').html(html);

thanks at all!
Just use pjax