kangbroke — 2010-03-11T00:25:15-05:00 — #1
On Sonny Gunnz.com I used php, And I just noticed when you click a link that the entire page refresh's which in my mind defeats the point of having it in php. What I want to happen is the Header, Nav & Footer stay on screen when a link is hit and just the main box on the right changes. Anyone got the solution for this
latox — 2010-03-11T01:24:09-05:00 — #2
You could always use ajax.
system — 2010-03-11T01:27:51-05:00 — #3
Ajax would end with same result as frames. and even worse - no SE indexing, no bookmarks etc.
latox — 2010-03-11T01:32:23-05:00 — #4
To be honest, you only really notice the page refreshing on http://www.sonnygunnz.com/ because most of the site is in Flash... if the navigation & header were done in CSS.. you wouldn't notice the page refreshing.
@Shrapnel, I suggested Ajax seeing as most of his site is in Flash, if he was interested in SERPs he would not be using flash.
Saying that.. if you want to keep the site flash, why not make the content area flash too? That way it'd all be in one object and you could make it slide in without the page refreshing.
kangbroke — 2010-03-11T01:43:05-05:00 — #5
I tried doing the whole page in flash and I could not get a good slideshow going for the photos page. The one I used is AS2 and when I would change back to the home frame the child loader would stay on the stage. I gave up. But my main problem was on youngswaggaman.com I wanted the News box to change when the nav is hit and the rest of the page to stay the same. And for that site I dont want to use any IFRames and I want the music player at the bottom to stay playing when navigating through the website
system — 2010-03-11T01:17:38-05:00 — #6
or wait. Your whole site become frameset. That's not good.
Dunno if there is any proper solution.
system — 2010-03-11T00:51:29-05:00 — #7
You are right to avoid frames.
But you have to learn technology a bit, to be able to ask proper questions.
PHP is a server side technology. It has nothing to do with page loads. It merely serves browser requests. What browser asks - what PHP gives out.
So, to reload page or not - it is matter of HTML and browser, not PHP.
For your player I'd suggest to use a frame. Not iframe, but old good frameset
kangbroke — 2010-03-11T00:54:08-05:00 — #8
Sounds good to me thank you
system — 2010-03-11T00:34:24-05:00 — #9
nothing bad with such a refresh
This sitepoint forum refresh whole page on click as well
it's the way all websites work
kangbroke — 2010-03-11T00:36:36-05:00 — #10
so no way to do it without using Iframes?? Im trying to avoid frames. Basically my problem is im also working on YoungSwaggaMan.com And there is a music player at the bottom. And on that page when a link is clicked the whole page refreshes and that would mess up the mp3 player.