Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Load PageContent via JS/jQuery/Ajax
#1
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!
Reply
#2
Just use pjax
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply




Users browsing this thread: 2 Guest(s)