javascript - How to open a php page on the right side when I click a link? -


i newbie of html. wish function when link clicked, .php page show on right side. not sure related ajax function or script.

click here: this want

click here: this example

thus, each time click different label, different .php page shown on right side.

this part of code.

  <li class="nav-header">menambah maklumat</li>           <li><a href="#"></i>resident</a></li>           <li><a href="#"></i>pentadbir</a></li>           <li><a href="#"></i>soalan-soalan lazim</a></li>           <li><a href="#"></i>annoucement</a></li> 

and have resident.php , annoucement.php me too. need guidance on how make work. thank you.

i think pjax you're looking for.

not handle loading page fragments asynchronously (what you're asking in question), pushstate means location bar updated when content changed. helps keep track of browser history when visitor hit's button, go expect to. means can bookmark or share right page too.


Comments