Forum Moderators: open

Message Too Old, No Replies

Dreamweaver MX, SSI & forms

         

Sgt_Banjo

12:28 pm on Apr 3, 2003 (gmt 0)

10+ Year Member



Hi all,

I'm currently converting a website from using frames into using SSI's using Dreamweaver MX. The way I've approached it is to use a table for the layout of the page and simply insert the relevant frame contents into the table as SSI's. I have no idea if this is the best way to acheive this but anyway, here is my problem.

When I design the table and enter the SSI into it everything works fine. I upload it, everything is fine and dandy, HOWEVER if I make one single change to the code of the page (i.e. not a change using the WYSIWYG editor) the whole table disappears and I'm left with only the graphics which I've used, no table outline, no SSI markers. This makes the page extremely difficult to edit!

The same thing occurs once the page has been saved and then re-opened.

I hope this is understandable as it is quite difficult to explain. Any help with this would be greatly appreciated.

Regards

Sarge

Sgt_Banjo

1:31 pm on Apr 3, 2003 (gmt 0)

10+ Year Member



Ok I'm getting somewhere with this problem. Dreamweaver doesn't like this code:-

<body>

<table width="75%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>
<!--#include virtual="/menuinc/menu_left.htm" -->
</td>
<td>&nbsp;</td>
</tr>

</table>
</body>

The <table> and </table> are marked invalid because it's an overlapping or unclosed tag

The </body> is marked invalid because it doesn't belong inside the tag it's in

All this has something to do with the include because non of the html is invalid until i insert the include. I know I'm being thick but what am i doing wrong.

Regards

Sarge

Sinner_G

1:48 pm on Apr 3, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Maybe this is too simple, but did you check that there are no <body></body> tags in the included file?

Sgt_Banjo

1:54 pm on Apr 3, 2003 (gmt 0)

10+ Year Member



I removed all <head></head> <html></html> tags but left <body> tags in as they define the background colours etc. Do these definately have to be removed?

Thanks

Sarge

quiet_man

2:08 pm on Apr 3, 2003 (gmt 0)

10+ Year Member



>>Do these definately have to be removed?

One way to find out ... take them out and see if the problems disappear.

If it does work, then you need to think about finding another way to specify your desired bgcolor/s within your SSI (use within TDs, for instance).

andreasfriedrich

2:09 pm on Apr 3, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yes. A HTML document may have only a single BODY [w3.org] element.

Andreas

Sgt_Banjo

2:10 pm on Apr 3, 2003 (gmt 0)

10+ Year Member



OK! replaced <body> tags with <a> and everything seems to be coming together again! Thanks very much for the help offered.

Regards

Sarge

Sinner_G

2:12 pm on Apr 3, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Just put your background color definitions in the <td> the file is included is, that should do the trick.

<added>

<a>? Why <a>?

Sgt_Banjo

2:21 pm on Apr 3, 2003 (gmt 0)

10+ Year Member



Some of the body tags have information like this in them which are obviously specific to the content. Replacing <body> with <a> (dunno why a? first thing I tried!) gets around the code errors but doesn't seem to let everything work as it should.

Example body tag:

<body "bgcolor="#FFFFFF" text="#FFFFFF"topmargin="0" background="/index_files/top_nav_tex.gif" leftmargin="0" onLoad="MM_preloadImages('/index_files/rollover/about_2.gif','/index_files/rollover/faq2.gif','/index_files/rollover/contact_2.gif','/index_files/rollover/terms_2.gif','/index_files/rollover/privacy_2.gif','/index_files/rollover/comments2.gif')">

Any ideas?

andreasfriedrich

2:22 pm on Apr 3, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



BTW Welcome to WebmasterWorld [webmasterworld.com] Sarge.

IŽd suggest reading Marcia`s WebmasterWorld Welcome and Guide to the Basics [webmasterworld.com] post which contains a lot of useful information.

Andreas