473,545 Members | 2,582 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

assembling dynamic pages, nested duplication of header-trailermaterial

Folks:

Using Dreamweaver CS3...

Consider a home page, "index.php" which conditionally REQUIREs one of 'N'
HTML files of pure content. All site styles are specified in a master CSS
file, "siteformatting .css"

The home page, "index.php" must link to the master CSS file, so that HTML
elements in this file can conform to site-wide standards, right? (Or
"index.php" should be modified to contain no HTML? See further below.)
Each of the 'N' content files must contain a link to the master CSS file;
this enables Dreamweaver to offer the site-wide styles when I edit them.

This scheme works consistently during authoring in Dreamweaver.

But: when a page is served up from my test host, the browser will see nested
duplication of header --and trailer-- material, including two identical
header links to "siteformatting .css". I've seen dire warnings about
nesting a valid HTML file within the body of another valid HTML file.

Yep, HTML Validator (latest: 0.8.5.2) extension to FireFox reports the
nested duplications with multiple warnings. The obvious way to deal with
this is to ignore the warnings. They aren't reported as errors, and thus far
in limited testing, I haven't seen any ill effects. But the "dire warnings"
seem to indicate this nested duplication could choke some browsers.

Or, I could to push all the HTML out of "index.php" into stand-alone HTML
files. But I'm reluctant about breaking up the home page into multiple
files. That seems very inconvenient for managing the site appearance. My
actual design is much more complex than the schematic description I'm giving
here. I think it would require a dozen or so HTML files, which seems very
inconvenient.

The only other option I can imagine is finding a way to persuade DW when it
opens a file for editing to pretend it sees HTML header and trailer material
--including the CSS link-- which aren't actually saved with the individual
files. Seems unlikely.

So, what's the "right" way to handle this?

TIA,

Henry

Nov 12 '08 #1
4 1873
Do you have a link to this? I'd like to see specifically what's going
on.

Thanks,
Thomas

henry wrote:
Folks:

Using Dreamweaver CS3...

Consider a home page, "index.php" which conditionally REQUIREs one of 'N'
HTML files of pure content. All site styles are specified in a master CSS
file, "siteformatting .css"

The home page, "index.php" must link to the master CSS file, so that HTML
elements in this file can conform to site-wide standards, right? (Or
"index.php" should be modified to contain no HTML? See further below.)
Each of the 'N' content files must contain a link to the master CSS file;
this enables Dreamweaver to offer the site-wide styles when I edit them.

This scheme works consistently during authoring in Dreamweaver.

But: when a page is served up from my test host, the browser will see nested
duplication of header --and trailer-- material, including two identical
header links to "siteformatting .css". I've seen dire warnings about
nesting a valid HTML file within the body of another valid HTML file.

Yep, HTML Validator (latest: 0.8.5.2) extension to FireFox reports the
nested duplications with multiple warnings. The obvious way to deal with
this is to ignore the warnings. They aren't reported as errors, and thus far
in limited testing, I haven't seen any ill effects. But the "dire warnings"
seem to indicate this nested duplication could choke some browsers.

Or, I could to push all the HTML out of "index.php" into stand-alone HTML
files. But I'm reluctant about breaking up the home page into multiple
files. That seems very inconvenient for managing the site appearance. My
actual design is much more complex than the schematic description I'm giving
here. I think it would require a dozen or so HTML files, which seems very
inconvenient.

The only other option I can imagine is finding a way to persuade DW when it
opens a file for editing to pretend it sees HTML header and trailer material
--including the CSS link-- which aren't actually saved with the individual
files. Seems unlikely.

So, what's the "right" way to handle this?

TIA,

Henry
Nov 13 '08 #2
On Nov 12, 11:12*pm, 703designs <thomasmal...@g mail.comwrote:
Do you have a link to this? I'd like to see specifically what's going
on.

Thanks,
Thomas

henry wrote:
Folks:
Using Dreamweaver CS3...
Consider a home page, "index.php" which conditionally REQUIREs one of 'N'
HTML files of pure content. All site styles are specified in a master CSS
file, "siteformatting .css"
The home page, "index.php" must link to the master CSS file, so that HTML
elements in this file can conform to site-wide standards, right? (Or
"index.php" should be modified to contain no HTML? *See further below..)
Each of the 'N' content files must contain a link to the master CSS file;
this enables Dreamweaver to offer the site-wide styles when I edit them..
This scheme works consistently during authoring in Dreamweaver.
But: when a page is served up from my test host, the browser will see nested
duplication of header --and trailer-- material, including two identical
header links to "siteformatting .css". * *I've seen dire warnings about
nesting a valid HTML file within the body of another valid HTML file.
Yep, HTML Validator (latest: 0.8.5.2) extension to FireFox reports the
nested duplications with multiple warnings. The obvious way to deal with
this is to ignore the warnings. They aren't reported as errors, and thus far
in limited testing, I haven't seen any ill effects. *But the "dire warnings"
seem to indicate this nested duplication could choke some browsers.
Or, I could to push all the HTML out of "index.php" into stand-alone HTML
files. But I'm reluctant about breaking up the home page into multiple
files. That seems very inconvenient for managing the site appearance. My
actual design is much more complex than the schematic description I'm giving
here. I think it would require a dozen or so HTML files, which seems very
inconvenient.
The only other option I can imagine is finding a way to persuade DW when it
opens a file for editing to pretend it sees HTML header and trailer material
--including the CSS link-- which aren't actually saved with the individual
files. * Seems unlikely.
So, what's the "right" way to handle this?
TIA,
Henry
Never mind, I see what you're saying. The truth is, this is a problem
with Dreamweaver. What you need to do is get out of Design mode and
not let your application design be determined by your editor. Really,
there's not much that you get out of Design mode that you can't get by
just refreshing a browser window. It's not even very reliable, based
on my experience.

Thomas
Nov 13 '08 #3
Thomas:

Thanks for your response to my post:

<snip>
>
<snipI see what you're saying. The truth is, this is a problem
with Dreamweaver. What you need to do is get out of Design mode and
not let your application design be determined by your editor. Really,
there's not much that you get out of Design mode that you can't get by
just refreshing a browser window. It's not even very reliable, based
on my experience.

I think this kind of architecture must have been around for a while, it
isn't uncommon, and DW designers might have figured out a way to deal with
it. Maybe there is, I just haven't found the right DW magic!

Now that I have had time to think of my proposed solution, to unwind the
index page so all HTML is in included files, I think it probably won't work,
because I think you can't just put code like this alone in index.php:

<?php

if (condition1)
{
require("conten t1.html")
}
elseif (condition2)
{
require("conten t2.html")
}

...
else
{
require("conten tn.html")
}

?>

Right? The file must contain some header and trailer material,yes? The only
ones I know about are <html<head... With </head</htmlfollowing, and
that's enough to create the problem -- as long as DW can't be persuaded to
use CSS that's not referenced in the current page.

In other words, I repeat, there doesn't seem to be any way of avoiding
nested headers.
There's also the possibility that I'm missing something incredibly obvious
about designing a dynamic site that sidesteps this issue.
That's the trouble with being self-taught, and working alone...

Thanks,

Henry

(remove the zzz)

>>
henry wrote:
>>Folks:
>>Using Dreamweaver CS3...
>>Consider a home page, "index.php" which conditionally REQUIREs one of 'N'
HTML files of pure content. All site styles are specified in a master CSS
file, "siteformatting .css"
>>The home page, "index.php" must link to the master CSS file, so that HTML
elements in this file can conform to site-wide standards, right? (Or
"index.php" should be modified to contain no HTML? *See further below.)
>>Each of the 'N' content files must contain a link to the master CSS file;
this enables Dreamweaver to offer the site-wide styles when I edit them.
>>
>>This scheme works consistently during authoring in Dreamweaver.
>>But: when a page is served up from my test host, the browser will see nested
duplication of header --and trailer-- material, including two identical
header links to "siteformatting .css". * *I've seen dire warnings about
nesting a valid HTML file within the body of another valid HTML file.
>>Yep, HTML Validator (latest: 0.8.5.2) extension to FireFox reports the
nested duplications with multiple warnings. The obvious way to deal with
this is to ignore the warnings. They aren't reported as errors, and thus far
in limited testing, I haven't seen any ill effects. *But the "dire warnings"
seem to indicate this nested duplication could choke some browsers.
>>Or, I could to push all the HTML out of "index.php" into stand-alone HTML
files. But I'm reluctant about breaking up the home page into multiple
files. That seems very inconvenient for managing the site appearance. My
actual design is much more complex than the schematic description I'm giving
here. I think it would require a dozen or so HTML files, which seems very
inconvenien t.
>>The only other option I can imagine is finding a way to persuade DW when it
opens a file for editing to pretend it sees HTML header and trailer material
--including the CSS link-- which aren't actually saved with the individual
files. * Seems unlikely.
>>So, what's the "right" way to handle this?
>>TIA,
>>Henry

Nov 14 '08 #4
I always thought that Dreamweaver was smart enough to handle includes
and what not. In your site settings, do you have DW seeing your local
server? I just set up a site here and it seems weak with
includes...alth ough DW sees my local server (URL tests fine) a simple
nav.php include does not appear in Design mode.

My advice is to just code the HTML by hand (I can't speak for DW's
effectiveness as an editor, but it seems to fall short here), which
I've been doing for ages now. You get better results when you do so.

Thomas

On Nov 14, 12:28*am, henry <henry.zzzab... @gmail.comwrote :
Thomas:

Thanks for your response to my post:

<snip>
<snipI see what you're saying. The truth is, this is a problem
with Dreamweaver. What you need to do is get out of Design mode and
not let your application design be determined by your editor. Really,
there's not much that you get out of Design mode that you can't get by
just refreshing a browser window. It's not even very reliable, based
on my experience.

I *think this kind of architecture must have been around for a while, it
isn't uncommon, and DW designers might have figured out a way to deal with
it. *Maybe there is, I just haven't found the right DW magic!

Now that I have had time to think of my proposed solution, to unwind the
index page so all HTML is in included files, I think it probably won't work,
because I think you can't just put code like this alone in index.php:

* <?php

* if (condition1)
* {
* * require("conten t1.html")
* }
* * elseif (condition2)
* {
* * require("conten t2.html")
* }

* *...
* else
* {
* * *require("conte ntn.html")
* }

* ?>

Right? The file must contain some header and trailer material,yes? *Theonly
ones I know about are <html<head... With *</head</htmlfollowing, and
that's enough to create the problem -- as long as DW can't be persuaded to
use CSS that's not referenced in the current page.

In other words, I repeat, there doesn't seem to be any way of avoiding
nested headers.

There's also the possibility that I'm missing something incredibly obvious
about designing a dynamic site that sidesteps this issue.

That's the trouble with being self-taught, and working alone...

Thanks,

Henry

(remove the zzz)
henry wrote:
Folks:
>Using Dreamweaver CS3...
>Consider a home page, "index.php" which conditionally REQUIREs one of'N'
HTML files of pure content. All site styles are specified in a masterCSS
file, "siteformatting .css"
>The home page, "index.php" must link to the master CSS file, so that HTML
elements in this file can conform to site-wide standards, right? (Or
"index.php" should be modified to contain no HTML? *See further below.)
>Each of the 'N' content files must contain a link to the master CSS file;
this enables Dreamweaver to offer the site-wide styles when I edit them.
>This scheme works consistently during authoring in Dreamweaver.
>But: when a page is served up from my test host, the browser will seenested
duplication of header --and trailer-- material, including two identical
header links to "siteformatting .css". * *I've seen dire warnings about
nesting a valid HTML file within the body of another valid HTML file.
>Yep, HTML Validator (latest: 0.8.5.2) extension to FireFox reports the
nested duplications with multiple warnings. The obvious way to deal with
this is to ignore the warnings. They aren't reported as errors, and thus far
in limited testing, I haven't seen any ill effects. *But the "dire warnings"
seem to indicate this nested duplication could choke some browsers.
>Or, I could to push all the HTML out of "index.php" into stand-alone HTML
files. But I'm reluctant about breaking up the home page into multiple
files. That seems very inconvenient for managing the site appearance.My
actual design is much more complex than the schematic description I'mgiving
here. I think it would require a dozen or so HTML files, which seems very
inconvenient .
>The only other option I can imagine is finding a way to persuade DW when it
opens a file for editing to pretend it sees HTML header and trailer material
--including the CSS link-- which aren't actually saved with the individual
files. * Seems unlikely.
>So, what's the "right" way to handle this?
>TIA,
>Henry
Nov 14 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
2404
by: boclair | last post by:
In a discussion between AJ Flavel and Spartanicus, The later said. "Layouts that work well on the desktop and on small screen devices are single column layouts. Layouts that use more than one column rarely work properly on a wide range of viewport widths. This also applies to "css" layouts that use separate "screen" and "handheld"...
1
3569
by: Steve Gadlin | last post by:
Hi there! First off, let me apologize for the basic question... I'm very new to .NET programming. I'm building a web site using VB.NET, and am trying to include several custom user controls. One of these user controls handles the navigation. This user control polls the database for the section headers that the current user has access...
1
17646
by: Nathan Bloomfield | last post by:
Does anyone know if there is any documentation which relates to Access2k + ? or can anyone help adjust the code? I am having trouble converting the DAO references. TITLE :INF: How to Create a Dynamic Crosstab Report PRODUCT :Microsoft Access PROD/VER:1.00 1.10 OPER/SYS:WINDOWS
7
8690
by: xkeops | last post by:
Thinking of creating a website, most of the pages will have a general toolbar menu, a content and a footer. The content will be the only one who's gonna change but the rest (header,footer) will remain the same. I am interested to know your opinions/suggestions in finding an easy way of doing it. In asp one could have something like this:
10
4895
by: jflash | last post by:
Hello all, I feel dumb having to ask this question in the first place, but I just can not figure it out. I am wanting to set my site up using dynamic urls (I'm assuming that's what they're called, an example of what I have in mind is index.php?page=). However, I can not figure out how to do this. I will eventually want to use SEF urls, but...
3
3090
by: Andreas Wöckl | last post by:
Hi Group! I have a web form that is created dynamically - so I create Textboxes, RadioButtonLists, CheckBoxLists and so on - I have found some articles that there may be some problems with postback - but if I press a submit button the textboxes keep the value. My problem is the following: I would like to use this Code to collect the data:...
9
2929
by: pbd22 | last post by:
Hi. This is just a disaster management question. I am using XMLHTTP for the dynamic loading of content in a very crucial area of my web site. Same as an IFrame, but using XMLHTTP and a DIV. I got the core of the javascript from here: http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm I noticed in the demo that sometimes the...
21
7672
by: karen987 | last post by:
I have a news website, with asp pages. It has publishing software which allows you to add articles in a database, and then calls them up from links etc. I have added dynamic meta tags in 2 parts. The first part is in the inc.header.asp file which is called up on every page. The page itself has the meta tag variable, ie. title, description. They...
4
1589
by: daveh551 | last post by:
I've seen reference to Nested Master Pages in some of the documentation, but I haven't been successful in creating one in VS 2005 (Framework 2.0). I just did a search on it, and "How To: Walkthrough" on Master pages listed VS 2008 and Framework 3.5 as pre- requisites. If I do an "Add New Item" selecting "Master Page", the "Use MasterPage"...
0
7490
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7682
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7935
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7449
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7780
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6009
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5351
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3479
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1911
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.