Click to See Complete Forum and Search --> : 3-Column Layout
toad78
08-28-2008, 05:15 PM
I have a 3-column layout on a web page that has a variety of links. After a user clicks on the link, I'd like the content to load in the center column. I know there's a way that PHP can work, but I don't know where to begin.
I appreciate any assistance.
Thank you,
toad78
Weedpacket
08-28-2008, 06:51 PM
Actually it's not PHP that does the job; PHP isn't running on the client so it has no idea what this "center column" is supposed to be.
What you're talking about is JavaScript. More accurately, so-called AJAX. All PHP does is serves the content that is supposed to go in the centre column the same way it serves anything else, and the browser puts it there.
toad78
08-28-2008, 08:04 PM
Well, I'm not familiar with Ajax, and I'm not internediate in JavaScript. Where does that put me?
nrg_alpha
08-28-2008, 09:16 PM
What you're talking about is JavaScript. More accurately, so-called AJAX.
I'm not entirely sure that statement is correct. AJAX is 'Asynchronous JavaScript and XML' which in turn means both Javascript and XML are used together (I believe for desktop-esque applications.. [think Google maps by example]).
Javascript on it's own accord is simply, Javascript.. (perhaps I'm simply splitting hairs however.. nowadays, AJAX is pretty much everywhere).
toad78
08-28-2008, 10:02 PM
Would you mind referring me where I can find information on doing this procedure?
toad78
NogDog
08-28-2008, 10:20 PM
There are a ton of tutorials out there (of various quality, of course). Try Googling for something like "AJAX PHP tutorial".
I have a demo page with all the source code if you'd like to look at one example: http://charles-reace.com/test/ajax/
Weedpacket
08-29-2008, 07:09 AM
AJAX is 'Asynchronous JavaScript and XML' which in turn means both Javascript and XML are used togetherHence the "so-called". I'm one of those irritating characters who had been mucking around with it before there was such a thing as an XMLHttpObject and before whatshisface came up with the name.
PHP Builder
Copyright Internet.com Inc. All Rights Reserved.