Solved

SSI Problem w/ DWMX2004

Posted on 2004-08-04
3
227 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Adobe Dreamweaver CS5 is a WYSIWYG web page editor that has advanced HTML, CSS, and Javascript rendering functionality and is probably the most well-known HTML editor available. Much of Dreamweaver's appeal centers around the Design View interfac…
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…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

726 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