Solved

Question about web page headers

Posted on 2014-03-20
9
336 Views
Last Modified: 2014-03-21
Hi - I want to have a header that doesn't change from page to page.  If it was back in the 90's I'd use frames, but I'm wondering if there is something new out there because I definitely don't want to have the animation reload on every page change.  Is this possible?  If so, what would I use?

Thanks!
0
Comment
Question by:zack4x4
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
  • 2
  • +1
9 Comments
 
LVL 33

Expert Comment

by:Big Monty
ID: 39943569
just use include files, one file for your markup, and then include it on every one of your pages:

http://www.php.net/manual/en/function.include.php
0
 
LVL 82

Accepted Solution

by:
leakim971 earned 250 total points
ID: 39943736
Is this possible?  If so, what would I use?

Yes, you can load content of your page with Ajax and simulate next page using pushState()
Ready to learn a new framework?
Take a look to : http://emberjs.com/
Or : http://angularjs.org/
0
 
LVL 110

Expert Comment

by:Ray Paseur
ID: 39944062
By "header" do you mean a consistent visual element, like the dark cyan banner at the top of this page?
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 4

Author Comment

by:zack4x4
ID: 39944283
That's correct.  If it was EE I would want it to not reload the EE blue bar header every time a different page is loaded.
0
 
LVL 110

Expert Comment

by:Ray Paseur
ID: 39945154
Most browsers are smart enough about unchanged files like images, CSS and JS.  They know not to reload the documents (unless the client has explicitly told the browser to always fetch new content).  You can serve the same content twice and unless the client has set the browser to always fetch, the content will be reused by the browser, from its own cache, not refetched from the server.

The commonly expressed objective for this goes something like, "I want my web pages to be fast, so I do not want to waste time downloading extraneous content."  Given consistent internet connection speeds, that's not usually much of a problem.  When a web page is slow, the issue almost always can be found in the I/O subsystem, and in web applications that is almost always the data base.

Can you tell us a little about the motivations behind your question?  Perhaps we can show you ways that others have found to do away with similar problems.
0
 
LVL 4

Author Comment

by:zack4x4
ID: 39945486
I have a cool flash animation but I don't want the animation to reload on every page as it will get quite annoying.  I might end up just putting it on the login screen (it's a company extranet app) and then use the static images on each subsequent page.
0
 
LVL 82

Expert Comment

by:leakim971
ID: 39945492
where to see that page?
0
 
LVL 110

Assisted Solution

by:Ray Paseur
Ray Paseur earned 250 total points
ID: 39945530
Ahh, now I understand the question better, and it's a common question.  Please have a look at this article:
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/A_3314-How-to-Show-an-Introductory-Web-Page-Once-Using-PHP.html
0
 
LVL 4

Author Closing Comment

by:zack4x4
ID: 39945561
Thanks!  It's not quite what I was looking for but it'll do. :)
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question