Page 1 of 1

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

Posted: Thu Jul 09, 2009 3:19 am
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.

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

Posted: Thu Jul 09, 2009 3:37 am
by iamngk
i hope you can try through AJAX..

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

Posted: Thu Jul 09, 2009 3:50 am
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?