[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

SSI Problem w/ DWMX2004

Posted on 2004-08-04
3
Medium Priority
?
242 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 2000 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

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 course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

656 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