-4

I'm trying to develop a website that runs everything in the same file, but I don't know how do I search study materials for it.

Like that:

Normal website -> I'm on index.php. When I click on the menu "Contact", for example, it refreshes and load the file contact.php

Website that I'm trying to do -> I'm on index.php. When I click on the menu "Contact", the website makes an animation (fade, side-scroll, etc) and shows the content of Contact, without loading any other files.

Can anybody help me? I've worked with single page websites before, but all of then follows the One Page Scroll Website Model.

I believe that I need to work with AJAX, but I'm not certain yet.

jpklzm
  • 105
  • 5
  • Are you talking about single page applications? Try looking up angularjs –  Sep 08 '14 at 18:59
  • What you're looking for is called a "single-page" website and, yes, it's going to be almost 100% AJAX. – DevlshOne Sep 08 '14 at 19:00
  • I would like to know why someone sent this question a -1... – jpklzm Sep 08 '14 at 19:06
  • 1
    @jpklzm because question can easily be researched on the web and your question is too broad and shows lack of research effort – charlietfl Sep 08 '14 at 19:08
  • I've made the same question on Brazilian stack and got the answer. I pretty good and explained answer, and I hasn't changed even a comma of it. Thanks them for don't be such ignorant people and try to help some users to find a way to solve their problems. http://pt.stackoverflow.com/q/6626/3511 – jpklzm Sep 08 '14 at 19:19
  • @jpklzm, yes, I'm sure the reason they didn't flag your question is because they "don't be such ignorant people". Why even bother to come here, since you got your answer on the Brazilian site? – Steve H. Sep 08 '14 at 19:29
  • I'm just making a research on the stacks. A cultural research, and I sadly lost a bet saying that the international stack would be better than the others. But on the others I received a lot of attention on my question and received pretty good answers. Here I only received attentions from the low rep guys who are trying to help and get helped. The "programming ninjas" just send a lower vote. It's a sad result... – jpklzm Sep 08 '14 at 19:41

2 Answers2

1

I would recommend you to use a frontend MVC like:

This will let you create seperate views, and do the AJAX loading for you.

Pepijn
  • 1,204
  • 1
  • 11
  • 25
0

AJAX is your friend indeed. Just load another page into the div (or other element) u want to change.

Ajax/jQuery - Load webpage content into a div on page load?

Community
  • 1
  • 1
Triplus
  • 126
  • 9