GetSimple Support Forum
Load PageContent via JS/jQuery/Ajax - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16)
+--- Thread: Load PageContent via JS/jQuery/Ajax (/showthread.php?tid=4416)



Load PageContent via JS/jQuery/Ajax - phpBeginner - 2013-03-04

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!


RE: Load PageContent via JS/jQuery/Ajax - shawn_a - 2013-03-04

Just use pjax