Re: CCS crashes NN

by WebProgrmr(at)aol.com

 Date:  Wed, 23 Feb 2000 13:13:17 EST
 To:  norm(at)normgregory.com;,
hwg-techniques(at)mail.hwg.org
  todo: View Thread, Original
> >Are you using Server Side Includes, by chance?
>  
>  Yep.  And three individual pages come up fine independently

This is where most of your problems are caused then.  The "included" files 
shouldn't open up fine on their own.  They should be dependent on the file 
it's inserted into.  For example,
this is how an HTML file will look with your SSI statement in it.  Note that 
the included file can be a .txt or a .html file.  Both, in principle, are the 
same thing.


==start of file===



<head>
fake title
</head>



some text..

bloh, bloah...

<!--#include virtual="includedfile.txt" -->




===end of file===


>From there, you need to have a "includefile.txt" that will insert into this 
code before it's served to the client.  See below.  Note that it doesn't have 
a <head>  or  tags.


===start of file ===

<table>
<tr>
<td>
this is the inserted code that goes in the fake one above.
</td>
</tr>
</table>

===end of file===


And there you go.  

You need to assume that when those three files combine, all of the code in 
each of them will be included in one large file.  When that long file gets 
served up with all redundant tags, BANG goes the client browser.

Your CSS is just an example of the redundancy.  I realize that you can't open 
the page in NN, but have you tried in IE?  It works well enough to show you 
the way the code looks after the server gets done combining the files.  
You'll see, what I'm talking about.

If this email doesn't help you, I believe a review of SSI might be in order.

Good luck and let me know if there's still trouble.
++Dan

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA