Advanced Web Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Iron Speed
 
Go Back   Dev Articles Community ForumsWeb DesignAdvanced Web Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old June 14th, 2007, 12:52 AM
engineerairborn engineerairborn is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2007
Posts: 6 engineerairborn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 21 m 58 sec
Reputation Power: 0
Using Muliple HTML documents

I'm sure that since this was something that could be done using frames that I would be able to do this in CSS, and all I have to do is search around the internet for hours, or buy a book to find the answer, but I don't have the time to do that on the net, and there are not a lot of good book stores in Iraq.

I have created a Web Page that has the header section and a menu section, along with the body and a footer using CSS, and DIV and all of that. It looks nice, but in order to have menu on all of my web pages I have to have it in every HTML doc. Using Tables I could just reference one html document that had the menu in is, and it would be put in that frame. At least that is how I recall that it worked, it has been many years since I did this.

Any help on this, or are you forced to code this into every HTML document?

Reply With Quote
  #2  
Old June 14th, 2007, 03:06 AM
Humanetainit's Avatar
Humanetainit Humanetainit is offline
Beyond help
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2007
Location: The Netherlands
Posts: 223 Humanetainit User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 1 h 32 m 30 sec
Reputation Power: 2
You may be looking for Server Side Includes.
__________________
One World... Humanetainit | Program secure

Reply With Quote
  #3  
Old June 14th, 2007, 11:13 AM
Mittineague's Avatar
Mittineague Mittineague is offline
Contributing User
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jul 2005
Location: West Springfield, Massachusetts
Posts: 530 Mittineague User rank is Private First Class (20 - 50 Reputation Level)Mittineague User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Week 21 h 4 m 40 sec
Reputation Power: 3
includes

Hi engineerairborn, welcome to the forums,
How you go about this depends on what capabilities your server has.
For example, with PHP I can do something like
header.php
Code:
<head>
// stuff here
</head>

menu.php
Code:
<div>
//menu here
</div>

footer.php
Code:
// stuff here

Then on each page I can do
Code:
<html>
<?php
include header.php;
?>
<body>
<?php
include menu.php
?>
// page content here
<?php
include footer.php;
?>
</body></html>
But there are ways to do this in other languages too. What kind of server capabilities do you have?

Reply With Quote
  #4  
Old June 14th, 2007, 04:04 PM
engineerairborn engineerairborn is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2007
Posts: 6 engineerairborn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 21 m 58 sec
Reputation Power: 0
Right now I do not have any server capability. Basically I'm just starting to create pages for a website that I want to get up and running for when I get home. So the pages are all static.

I may have misspoke in my first post. Maybe it was frames that I was thinking off. Where you could set a frame and use the src property to call in another HTML page into the frame. For some reason I thought that this could also be down in tables. Any way,

Using the frames of old as a reference can this same thing be done with CSS and DIV

So I would have for example my page that would have the header, and the menu and the footer, but the middle the content portion would be the only part that changes loading in a new page. With out having to put a frame there.

Reply With Quote
  #5  
Old June 14th, 2007, 08:47 PM
Mittineague's Avatar
Mittineague Mittineague is offline
Contributing User
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jul 2005
Location: West Springfield, Massachusetts
Posts: 530 Mittineague User rank is Private First Class (20 - 50 Reputation Level)Mittineague User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Week 21 h 4 m 40 sec
Reputation Power: 3
frameset

A frameset page is kind of like using a table for page layout I guess. I figured that's probably what you meant.
If you don't have a server then I guess you're somewhat limited as to how deep into specifics you go.
Although I wouldn't recommend frames as they're "falling out of favor", they are still widely supported. And if usability, SEO, and/or cross-browser support, ever became an issue for you, you could probably "migrate" to includes at some point with minimal rewriting.
This is an example page
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
 "http://www.w3.org/TR/html4/frameset.dtd">
<HTML>
<HEAD>
<TITLE>Frameset Page</TITLE>
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</HEAD>
<FRAMESET ROWS="*,100">
  <FRAMESET COLS="40%,*">
    <FRAME NAME="Menu" SRC="nav.html" TITLE="Menu">
    <FRAME NAME="Content" SRC="main.html" TITLE="Content">
  </FRAMESET>
  <FRAME NAME="Ad" SRC="ad.html" TITLE="Advertisement">
  <NOFRAMES>
    <BODY>
      <H1>Table of Contents</H1>
      <UL>
        <LI>
          <A HREF="reference/html40/">HTML 4 Reference</A>
        </LI>
        <LI>
          <A HREF="reference/wilbur/">HTML 3.2 Reference</A>
        </LI>
        <LI>
          <A HREF="reference/css/">CSS Guide</A>
        </LI>
      </UL>
      <P>
        <IMG SRC="ad.gif" ALT="Ad: Does your bank charge too much?">
      </P>
    </BODY>
  </NOFRAMES>
</FRAMESET>
</HTML>
It might take a while to get your columns and rows to look like what you want http://www.w3schools.com/tags/tag_frameset.asp , but once you have the framework done you can put whatever html pages you want into each.
Because the navigation links open in frames, you will need to "target" what frame they open in. http://www.w3schools.com/html/html_frames.asp

This can be done with CSS and divs, but unless you wanted to use iframes in the divs, you need some kind of way to include (PHP, Perl, Asp, Jsp, etc.) and without a server that should probably wait for now.

Last edited by Mittineague : June 14th, 2007 at 08:53 PM.

Reply With Quote
  #6  
Old June 14th, 2007, 11:06 PM
engineerairborn engineerairborn is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2007
Posts: 6 engineerairborn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 21 m 58 sec
Reputation Power: 0
I hear yah.. That is sort of what I thought. Not a big deal, I will just start working on the back end, and wait till I get home then to work on the front end rather then Manually writing, and re-writting each page as I add a new menu item or such.

I think maybe I will just write a small VB/Access app that will create the pages for me with the information I place in a database. Thanks for the input guys appreciate it. I have a lot of chatching up to do since I have been out of the programming field for 2 years.

So what is hot these days besides Java and CSS?

Reply With Quote
  #7  
Old August 18th, 2007, 03:43 AM
engadven engadven is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2007
Location: Devon
Posts: 2 engadven User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 31 m 34 sec
Reputation Power: 0
I'd avoid framesets as they can upset you SEO.
You should use server side includes but you can do that easily with just th .shtml extension. most hosts will run this although it may need to be activated. The rest is like html but it with embeds other sections with the include tag.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsWeb DesignAdvanced Web Development > Using Muliple HTML documents


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five &quot;checkpoints&quot; for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Iron Speed




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway