Web Design Forum: Title Bar Remaining - Page content only changes - Web Design Forum

Jump to content

WDF
WDF Premium Memberships Reseller Hosting
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Title Bar Remaining - Page content only changes

#1 User is offline   siriusfire 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 9
  • Joined: 09-February 10
  • Reputation: 0

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
0

#2 User is offline   Fraser 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 24-January 10
  • Reputation: 0
  • Gender:Male
  • Location:Scarborough (UK)
  • Experience:Intermediate
  • Area of Expertise:Web Developer

Posted 09 February 2010 - 02:55 PM

do you know about framesets?
0

#3 User is offline   siriusfire 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 9
  • Joined: 09-February 10
  • Reputation: 0

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!!!
0

#4 User is offline   pippin62 

  • Dedicated Member
  • PipPip
  • Group: Members
  • Posts: 211
  • Joined: 21-July 08
  • Reputation: 3
  • Experience:Intermediate
  • Area of Expertise:Designer

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.
0

#5 User is offline   siriusfire 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 9
  • Joined: 09-February 10
  • Reputation: 0

Posted 09 February 2010 - 04:11 PM

View Postpippin62, 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.


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
0

#6 User is offline   pippin62 

  • Dedicated Member
  • PipPip
  • Group: Members
  • Posts: 211
  • Joined: 21-July 08
  • Reputation: 3
  • Experience:Intermediate
  • Area of Expertise:Designer

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. ;)
0

#7 User is offline   siriusfire 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 9
  • Joined: 09-February 10
  • Reputation: 0

Posted 09 February 2010 - 04:27 PM

Thanks very much - just what I needed.
You're very kind with your time!
:)
0

#8 User is offline   pat24 

  • Guru of nothing important!!
  • PipPipPipPipPip
  • Group: Members
  • Posts: 2,174
  • Joined: 29-April 08
  • Reputation: 129
  • Gender:Male
  • Experience:Intermediate
  • Area of Expertise:Web Developer

Posted 09 February 2010 - 04:29 PM

View Postpippin62, 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
0

#9 User is offline   siriusfire 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 9
  • Joined: 09-February 10
  • Reputation: 0

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
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users