posted 13 years ago
Is there a straight-forward way to, say, when the user clicks a nav button, to swap out the text within a div tag?
What I'm trying to do is to update the page the user visits, as he clicks various nav buttons, by swapping out just the part(s) of the page that change (the main content div, in this case) without having to create a separate page with the nav bar and all the other parts for each page.
So, for an example, say you have a "home page" and the user clicks the "Testimonials" link. In my case, much of the "home page" would be the same for each page -- the nav bar, footer, etc.. So, all I'd need to do is to somehow "swap in" the Testimonials text for the main div on the "home page".
Look forward to any suggestions or code samples.