changing pages without page loading

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Hendeca
Forum Commoner
Posts: 29
Joined: Tue Nov 18, 2008 1:27 pm

changing pages without page loading

Post by Hendeca »

Hello!

I'm working on a wordpress site that has a header section with a navigation menu, and then a content area below. I want the header content to remain the same on every page, but have the content change. No big deal, but I am wondering if there's a way to do this without having to load a new page each time. For example have something similar to a frame, where the header content doesn't actually change, but instead triggers new content to be loaded into the content area. The reason for this is to create a seamless experience where clicking on a link doesn't open a new page, but simply loads new content instantly. I was thinking perhaps this can be done in php? Or maybe frames are still a viable option? (I haven't used frames in many years so I'm not sure!) Anyone know a good way to achieve this effect? Thanks in advance!

-Neal
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: changing pages without page loading

Post by jackpf »

Sounds like you want ajax.
Post Reply