Page 1 of 1

Follow Up on: My First PHP Site (EQ-Roster using frames)

Posted: Sat Jun 19, 2004 2:51 am
by MadButch
A while back I posted here about my first PHP site (viewtopic.php?t=20248), and asked for feedback. Most of that feedback was about the use of frames.

I've made some updates to the pages since then, and I'm loving this PHP stuff more and more :)
But I also kept the frames things in mind. Reading up on css, xhtml, I finally got pointed in the right direction on how to get my layout done with css only.

I've managed to convert my old roster (using frames):
http://eqroster.gameplayheaven.com

To this new one, using stylesheet only:
http://www.gameplayheaven.com/eqroster/everquest_new

There's 2 things I don't like.
First, the address bar now shows the full link including tags and everything. I don't know anyway to disable this, other then going back to a Framed layout again, one that has 2 frames, the flash logo and the real page. That way the link in the address bar will never change.

Second, if I resize the window, the footer doesn't fit in the div any more. The div catches this and automatically resizes itself, but thereby overwriting the body above it (which doesn't resize).
Maybe there is a way to tell a div to never resize itself?
If not, all I can think of, is make the footer a table.

One last thing, as you can clearly see on the character overview (startup page) the header and the body both contain a table (100% width). But the header doesn't have a scrollbar, and is therefor wider then the table, mis-aligning the rightmost columns.

Is there a way to give a div an invisible scrollbar that is always present? Or maybe adjust it's width so that it is 100% - the scrollbar width?

I guess I need to calculate the column width by hand, and then give the header and the body the same column widths.
Either that, or a fixed table row :)

I know the later two questions are more on html/css, but I still felt I should post here as well, because this is where the feedback was given on not using frames.

If you experts have any thoughts on these points, then I'd be glad to hear them...

Kind regards,
Michael

Posted: Sat Jun 19, 2004 6:38 pm
by d3ad1ysp0rk
Fixing the URL things:

Only send things through the URL that would be needed to re-create that page (ie. order).
Send the rest through POST or SESSION.

So it would look like /characters.php?order=name

or whatever.