Solved

SSI Problem w/ DWMX2004

Posted on 2004-08-04
3
197 Views
Last Modified: 2010-04-25
This is weird.  I'm starting on a site using SSI -- please take a look at http://atdfinancial.com/taxes.shtml for one of the 2nd level pages.

I use <!--#include file="menu.html" --> to display that JavaScript menu you see at the top.  The menu and the page are working fine.

My problem?  I can't work on that page or any other page with the includes inserted on that page in Design mode in Dreamweaver MX 2004.  Everything below the menu totally disappears in Design mode when I add <!--#include file="menu.html" -->.  If I remove the <!--#include file="menu.html" -->, the rest of the page shows up again.

The page is in XHTML with an external CSS file.

Again, the page is working fine when published.  The problem is trying to work on it in Design mode in DWMX2004 (a fully licensed and activated version, I hasten to add).

I have rebooted my PC, changed #include file to #include virtual (unnecessary since the files are on the same level), and spent a couple of hours going in circles looking for an answer.  Answer this and you deserve the beverage of your choice in addition to the 500 points.

TIA!
0
Comment
Question by:CompuGenieXP
  • 2
3 Comments
 
LVL 14

Accepted Solution

by:
Esopo earned 500 total points
ID: 11723117
You are having two sets of header and body.

Your include file <!--#include file="menu.html" --> has information for hearders and body, so does your taxes.shtml page.
In a webpage you only need one set of headers and body. IE will display it cause IE is very nice to us developers and will make an effort to display whatever you send it, but DW will look for this info, hence your problem.

You need to strip the included file of headers and body tags. Only your MAIN page should have such information.

For exmpl:

This are the starting lines  of your include file menu.html:
******************************

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title></title>

******************************
This needs to go. Taxes.shtml already has this information.



Also, once you get this straight you will come to a new problem. Your menu is trying to preload the necessary images using the onLoad of the body tag, which is one of the tags you'll need to delete. So you will need to place that preload information elsewhere.

Best regards,

Esopo.


BTW: Don't forget to back up your pages before deleting stuff ;)
0
 
LVL 1

Author Comment

by:CompuGenieXP
ID: 11725702
I thought I had tried all of that, but I left the <body onload. . .> in the menu.html file.

Thank you, Esopo!
0
 
LVL 14

Expert Comment

by:Esopo
ID: 11729953
My pleasure.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I still run into .cgi files every now and then. In some instances, I actually prefer the simplicity of a .cgi script to other options. Since I use DreamWeaver extensively, what I needed was a way to open .cgi scripts in Dreamweaver. And I wanted to …
This article is very specific and is only intended to help if you are installing Dreamweaver 8 in a Windows 7 environment with Office 2007 installed.   I'm not sure why Microsoft tends to release OS' that should not be released but they do.  Windows…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now