Fog Creek Software
Discussion Board

Knowledge Base
Terry's Tips
Darren's Tips

Having problems with html

City Desk is complaining about an HTML file I have (shown below).  It says there are HTML syntax errors in it (might be duplicate <HTML> <HEAD> <TITLE> or <BODY> tags), but for the life of me I can't find any and it displays just fine in IE. 

Note: I've both imported this html file from disk AND done it by hand, and neither works. Thanks.

Code follows


<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>New Page 2</title>

<frameset framespacing="0" border="0" frameborder="0" rows="114,*">
  <frame name="banner" scrolling="no" noresize target="contents" src="top.htm">
  <frameset cols="199,*">
    <frame name="contents" target="main" src="left.htm" scrolling="no" noresize>
    <frame name="main" src="middle.htm">

  <p>This page uses frames, but your browser doesn't support them.</p>



Chris Jones
Tuesday, November 25, 2003

The error message is now obsolete with CityDesk 2.0 as HTML errors are now XHTML errors and tags need to be lowercase.

Some of your tags need to be changed slightly to be xhtml compliant (close all tags and all attributes have values, etc.)

for example, change:
<frame>            ->              <frame />
noresize            ->              noresize="noresize"

That said, I'm not sure CityDesk supports framesets in version 2.0 as I've never gotten it to work.  I used frames in my last job and just left it in HTML mode (another misnomer, now) , saved the artilce and published.

Can anyone post some xhtml frameset code that works in CityDesk?

I tried several examples from the web, including this snippet from DevGuru and all get the "HTML" errors:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "">
<html xmlns="" xml:lang="en" lang="en">
<title>DevGuru XHTML frameset Tag Example</title>
<frameset cols="50%, 50%">
      To be viewed properly, this page requires frames.
  <frameset rows="33%, 33%, *">
      <frame src="xhtml_frames_red.html" />
      <frame src="xhtml_frames_orange.html" />
      <frame src="xhtml_frames_yellow.html" />
  <frameset rows="50%, 50%">
      <frame src="xhtml_frames_green.html" />
      <frame src="xhtml_frames_blue.html" />

David Burch
Tuesday, November 25, 2003

I am like you and don't think frames work in CD.  If you leave everything in HTML (code) mode, it should be no problem.  However, as you can tell, the WYSIWYG mode just doesn't know what to do with it.  If you are using frames in a template, use an external editor. 

I have a site using frames and everything works well, but I do use GoLive to edit the templates.

Jeff Kolker
Tuesday, November 25, 2003

*  Recent Topics

*  Fog Creek Home