frames VS something else
I am in the process of making my a web page. I have been working with html for about 5 years now but just recently I have been getting into more advanced forms of web page production.
Now the question. I plan to set up my site similar to many pages on the internet right now. The links to all the sections will be on the left side and the content on the right. I could easily accomplish this with frames and I could update conveniently. Why does everyone seem to avoid frames nowadays? Do I have any other options? Like using tables?
I would need to update the link and content often and the links would appear on every single page.
Can php, css or asp help me with this? I am interested in learning both of these languages but I am not sure exactly how they could be useful to me.
Suzanne posted this at 01:25 — 30th December 2002.
She has: 5,507 posts
Joined: Feb 2000
5 years of html and you haven't explored server-side scripting? That's impressive!
PHP, ASP are server-side languages, CSS is what you should be using with the HTML to style the page (fonts, positioning, colours, even images).
Using server-side languages to include content is indeed the norm now, and it's the easiest to maintain (easier still than frames). Do not use tables unless you really really need to (like for tabular data).
Renegade posted this at 03:52 — 30th December 2002.
He has: 3,022 posts
Joined: Oct 2002
Well I suggest PHP as it is a good server side language, and it's quite a bit like programming in english and it's quite easy update too
TOBART posted this at 04:51 — 30th December 2002.
They have: 42 posts
Joined: Dec 2002
Well those 5 years of html started when I was 14. I just took forever to learn everything and web pages really became a hobby as of this year.
Could you direct me to a good place to learn the basics of php or asp. Which one would work better for what I want to do? My server supports both asp and php. Also, is asp.net the same as asp?
Suzanne posted this at 05:11 — 30th December 2002.
She has: 5,507 posts
Joined: Feb 2000
No, the .NET platform is far more like JSP (Java Servlets or Java Server Pages), in that the pages are put together dynamically, but compiled on the server and served that way to the public until changes are made. M$ likes to rip off good ideas...
PHP and ASP (not asp.NET) are also dynamically generated pages, but they are generated for each call for the page.
Renegade posted this at 06:39 — 30th December 2002.
He has: 3,022 posts
Joined: Oct 2002
http://www.hotscripts.com/PHP/Tips_and_Tutorials
TOBART posted this at 20:37 — 1st January 2003.
They have: 42 posts
Joined: Dec 2002
Ok before I go off and learn php, can anyone tell me the disadvantages and advantage of php and asp? Just ones related to what I mention in this thread. Sorry about requesting so much info, but I will be spending a lot of time learning whatever one I choose.
Busy posted this at 03:50 — 2nd January 2003.
He has: 6,151 posts
Joined: May 2001
no real disadvantages, heaps of advantages thou, php is easy to learn and use and can be used with or without a database.
html is static meaning once it's there, its there and you can't do much with it, with php, which is server side you can get user input to control what they see. this forum for example uses php and mysql.
here is a basic template style using php
<?php
include("title_stuff.php");
?>
<?php
include("top_table_stuff.php");
?>
<?php
include("naviagtion_stuff.php");
?>
<?php
include("main_contents.php");
?>
html stuff
<?php
include("bottom_table_stuff.php");
?>
This is basically all it is, without going into a php lesson, the included files included can be .inc .txt, .html, .phtml, .php, .inc.php etc and the "include" can be require, include_once, etc like anything always more than one way to do it.
If you have used javascript (included scripts etc) its just like that but you can do more, and have more happening. zend.com has some tutorials, one is the top 21 mistakes made using php and mysql - worth a look once you got the basics down other wise you wont know what the heck they are on about good luck
Renegade posted this at 09:30 — 2nd January 2003.
He has: 3,022 posts
Joined: Oct 2002
And in PHP if your not sure if it works or not, just try it because just about anything you do will work
Megan posted this at 14:46 — 2nd January 2003.
She has: 11,421 posts
Joined: Jun 1999
If you want a quick solution you could always use Server Side includes. Very simple to implement and you don't have to learn a lot of programming at all. I'm still using these since I haven't gotten around to learning PHP or anything like that (and at this rate, maybe I never will!!).
Here's a good tutorial on SSI's:
http://www.bignosebird.com/ssi.shtml
What you'll do is cut your pages up into three sections - the header and footer areas that will be seen on every page, and the content which will be different. Then you'll just instert two little tags to put the header and footer before and after the content. Pretty simple.
Megan
Connect with us on Facebook!
Suzanne posted this at 19:19 — 2nd January 2003.
She has: 5,507 posts
Joined: Feb 2000
That's the best way to use PHP includes as well...
<? include "header.php"; ?>
This is the main heading
content
<? include "footer.php"; ?>
Occasionally I'll have some php above the header include, setting variables for the page, such as title or meta tags as well. Othertimes, that information will be conditionally set in the header.php file.
With SSI, you can do the same thing.
jag5311 posted this at 01:41 — 4th January 2003.
They have: 202 posts
Joined: Jan 2002
Suzanne,
You made a comment earlier in this thread to stay away from tables regarding Menus and content. Is that right, or were you referring to something else?
Suzanne posted this at 02:37 — 4th January 2003.
She has: 5,507 posts
Joined: Feb 2000
using nested tables for what are essentially lists is just making things more complicated than they need to be, that's all. an unordered (or ordered) list that's styled will result in a more accessible, sensible and easily edited navigation menu, and it can be styled in many ways.
We've discussed some of the ways a number of times in these forums as well.
Nested tables can, for the most part, be avoided with better coding practices.
jag5311 posted this at 06:00 — 4th January 2003.
They have: 202 posts
Joined: Jan 2002
Thanks. The three c's, Clean, Clear, and Concise.
Spiffu posted this at 09:30 — 9th January 2003.
They have: 17 posts
Joined: Jan 2003
You could go with iframes too if you still don't wanna hit server side stuff yet. They're rediculously easy to code.
TOBART posted this at 18:39 — 9th January 2003.
They have: 42 posts
Joined: Dec 2002
I have used iframes before, they seem to work good, but they only work on certain browsers right?
I picked up a book on php and I am learning that, my friend who has a good knowledge or C++ (he is a comp science major) is learning asp.net
We are hoping to combine our skills to create the page.
Spiffu posted this at 20:30 — 9th January 2003.
They have: 17 posts
Joined: Jan 2003
In my experience they work in IE 5.x and netscape 6.x and up. Granted they're not the most accessible web feature but I figure if it works on at least two flavors of browsers thats good enough.
"What do you do when you see a terrorist with one leg? Stop laughing and reload."
Renegade posted this at 22:40 — 9th January 2003.
He has: 3,022 posts
Joined: Oct 2002
I still odn't recommmend it because more and more people are beginning to use alternative browsers like opera and mozillq, so you will be stopping them from viewing your page properly, which is a big no no
Megan posted this at 14:38 — 10th January 2003.
She has: 11,421 posts
Joined: Jun 1999
If something works in NS 6 it works in mozilla (since NS 6 is based on mozilla, they necessarily support the same things for the most part). They also work in Opera so no problems there (except I woulnd't say that this is the best way to go about doing this, but whatever...)
Megan
Connect with us on Facebook!
Suzanne posted this at 15:28 — 10th January 2003.
She has: 5,507 posts
Joined: Feb 2000
iframes are part of the standard, but the point is to be able to do things like scrolling content in weird places like is hacked up with dhtml, not to replace ease-of-use technologies like server-side programming.
Not that intent is law, ha!
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.