How to get links to load a page in a page.

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
insight
Forum Commoner
Posts: 52
Joined: Tue Jul 07, 2009 9:12 am

How to get links to load a page in a page.

Post by insight »

I was wondering how I could get links to open up a page inside a page in a different area WITHOUT using iframes or stuff, just a page reload.

For example:

http://www.insight.atbhost.net/index.php
Image

OK, the page above will be the index.php page. if I got to click a link in the menu bar then it will reload the page and ONLY the content will change (according to the file the link is linked to). And the webaddress will not change?

Will switches work? I plan to make a script which will allow admin users to create, delete and modify (change name etc) the links. And I want it so I don't have to reconfigure the script all the time to get new links to work.
iamngk
Forum Commoner
Posts: 50
Joined: Mon Jun 29, 2009 2:20 am

Re: How to get links to load a page in a page.

Post by iamngk »

i hope you can try through AJAX..
insight
Forum Commoner
Posts: 52
Joined: Tue Jul 07, 2009 9:12 am

Re: How to get links to load a page in a page.

Post by insight »

iamngk wrote:i hope you can try through AJAX..
hmm, I was planing on using Ajax but I'm not sure. Wouldn't it put a lot of strain on the server? Especially if there are lots of users? But either way, I will look into it.

But anyways, doesn't Ajax only get information from the database? and isn't it only text? What about php files in a directory that contain <div> tags and <tables> and forms etc etc?
Post Reply