View Full Version : Top line of code showing when viewing page

07-07-2010, 05:20 PM
I'm not sure where this post belongs so I just put it here, in General.

I built a web page using a basic template.

Everything looks okay when I view it with IE,
but when I view it with Mozilla
the top line of the code shows at the top of the page

Viewing it with Mozilla (Windows 7) looks like this;

but does not show the code when viewing it with IE, like this;

'View Source' shows it as the top line of the code;

So can someone tell me what I might be able to do about this?

With appreciation

07-07-2010, 05:23 PM
There shouldn't really be anything above the doctype in a page. What happens if you take the line out?

07-07-2010, 06:12 PM
Thank you that seemed to solve it.

But, one other related thing, if I may.

As I mentioned, I built this page using a basic template.
This is the first time that I have used a template so I'm not familiar how to use them.

First, I had to figure out how to adjust margins and 'container' sizes, etc.

After tinkering with the code a bit, I did get the page to look like I wanted.

But, DW would not let me Save
Instead, when I tried to Save, I got this notice (attached).

I did go ahead and save that page as a .dwt but then I couldn't seem to get it to work (edit, Save, etc.)

So, what I did was to start over from scratch and then when it came time to Save,
I went ahead and did 'Save As . . .' and Saved it as an old DW page that I had (overwrote it).

From there I just renamed it and then every time that I wanted to Save, I did 'Save As . . .' and overwrote it.

This works okay but I'd like to learn how to use templates properly.

Can you tell me if there are any simple (Step by Step) instructions/tuts on this?

Thanks again

07-07-2010, 06:32 PM
If you check under the tutorials link on this site there is one by dwcourse about defining your site. Start there. There is also one by your truly about using dw templates.

07-08-2010, 08:28 PM
It looks to me as if, when you created the page, in the New Page dialog you selected ASP Javascript as the page type. If you're not on a Windows server, that will cause you problems. Make sure you select HTML for the page type.

Note: You might want to choose a different page type if you're using some kind of server technology but, if unless you know what that means, stick with HTML.