Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Blog style portfolio only with Js/Jquerry Reply To: Blog style portfolio only with Js/Jquerry

#169345
Alen
Participant

Hi @PirateStef, I’ve made simple AJAX demo for someone here while back. It does what you’re after. https://gist.github.com/alenabdula/9954542

You will see list of pages:


<li><a href="product-one.html">Product One</a></li>
<li><a href="product-two.html">Product Two</a></li>
<li><a href="product-tri.html">Product Tri</a></li>

here change the product-one.html to the name of the file you wish to load. So in your example above:


<li><a href="Project1.html">Project 1</a></li>
<li><a href="Project2.html">Project 2</a></li>
<li><a href="Project3.html">Project 3</a></li>
<li><a href="Project4.html">Project 4</a></li>

Whatever file you specify in the href= that file will be loaded. So make sure you name your files appropriately. Hope that helps.

-Alen