Solved

SSI Problem w/ DWMX2004

Posted on 2004-08-04
3
207 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

862 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

24 Experts available now in Live!

Get 1:1 Help Now