Page 1 of 1
Title Bar Remaining - Page content only changes
#1
Posted 09 February 2010 - 02:52 PM
Many apologies if this has been asked a hundred times before. Yes I'm a newby sorry! My question is probably more about what words I should be using to describe the effect I have - rather than what I need to achieve.
I have seen in a few websites (such as http://www.liveatc.net and http://www.pic.int/ for example) that when a menu selection is clicked the title elements remain on the screen and only the content is changed. It appears that they use a PHP function to achieve this.
Is this a fairly easy thing to do (eg copy and adapt)? If so, what are the vital elements to achieving this?
Again apologies if this has been covered numerous times elsewhere - I have tried to search for it - but don't really know what I'm looking for. I will be quite happy to delete this thread if it is surplus to requirements.
Cheers - Sirius
I have seen in a few websites (such as http://www.liveatc.net and http://www.pic.int/ for example) that when a menu selection is clicked the title elements remain on the screen and only the content is changed. It appears that they use a PHP function to achieve this.
Is this a fairly easy thing to do (eg copy and adapt)? If so, what are the vital elements to achieving this?
Again apologies if this has been covered numerous times elsewhere - I have tried to search for it - but don't really know what I'm looking for. I will be quite happy to delete this thread if it is surplus to requirements.
Cheers - Sirius
#3
Posted 09 February 2010 - 03:34 PM
OK - its probable that 'framesets' was the word I was after do describe the effect - I was just a little scared of 'frames' from the dark old ages - when I last designed a page!!!
#4
Posted 09 February 2010 - 03:36 PM
It's PHP you need not framesets. It's very easy to use PHP includes. Create an HTML page with the navigation content only (do not add anything else ie header data). Then to include this on every page just insert:
<?php include("mynavigation.html"); ?>
Save the page with .php not .html and your done.
<?php include("mynavigation.html"); ?>
Save the page with .php not .html and your done.
#5
Posted 09 February 2010 - 04:11 PM
pippin62, on 09 February 2010 - 03:36 PM, said:
It's PHP you need not framesets. It's very easy to use PHP includes. Create an HTML page with the navigation content only (do not add anything else ie header data). Then to include this on every page just insert:
<?php include("mynavigation.html"); ?>
Save the page with .php not .html and your done.
<?php include("mynavigation.html"); ?>
Save the page with .php not .html and your done.
Yep - I think that's what I need to use. A couple of questions.....
Can I test this locally - or does it have to be uploaded to a php server to test?
Does any other code have to be uploaded to make this work??
Cheers
#6
Posted 09 February 2010 - 04:24 PM
Yes, you will need to upload to server. Which needs to be running PHP of course. You don't need any other code but do a search for PHP includes to get more info.
#7
Posted 09 February 2010 - 04:27 PM
Thanks very much - just what I needed.
You're very kind with your time!
You're very kind with your time!
#8
Posted 09 February 2010 - 04:29 PM
pippin62, on 09 February 2010 - 04:24 PM, said:
Yes, you will need to upload to server. Which needs to be running PHP of course. You don't need any other code but do a search for PHP includes to get more info. 
you cam test php locally using xammp or wamp if you prefer. these programmes will install php mysql and apache and configure it ready to use.
If you are new to this then just read the documentation on their site. once you have it up and running on your local pc you can test all your php files locally before uploading .
Pat
#9
Posted 09 February 2010 - 04:33 PM
Ok - cool, thanks Pat - that'll be very useful. I obviously have a bit of work to be getting on with (learning php and installing and understanding mysql and apache) - I'd better be getting on with it.
Thanks for your time
Thanks for your time
Share this topic:
Page 1 of 1
Help















