Solved

SSI Problem w/ DWMX2004

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Search/Results Pages 7 393
Saving Form Data when Leaving Page 3 360
Getting the co-ordinates of a map 1 178
CS6 Adobe Dreamweaver Alphanumeric list 4 97
For those who don't know, Adobe Dreamweaver is a popular commercial web editor that enables you to design, build and manage complex websites. The editor is a WYSIWYG (What You See Is What You Get) web editor, which means that you can create your web…
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 Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

786 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