Gossamer Forum
Home : Products : DBMan : Discussions :

Just something I observed...

Quote Reply
Just something I observed...
Hi! I notice something about DBMan just today. In order for DBMan to recognise certain HTML tags or codes especially in Netscape 6.1, you will need to add this line in sub html_print_headers:

print "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\">\n";

Note that the line MUST appear after the line:

print "Content-type: text/html\n\n";

I suppose this must be a Netscape 6.1 issue. How I discover this was that when i tried to add STYLE="background: #A6B7D6; font: 9pt Arial, Helvetica, sans-serif" inside the <input type> tags, in I.E 5.5, it showed up correctly while in Netscape 6.1, the text field of the form became very long.

I don't know whether this is specific to my computer or is it generally true.

Would be glad if someone can verify this.Cool
Julian
Quote Reply
Re: [vampy] Just something I observed... In reply to
In general all html pages should contain the DOCTYPE appropriate for the HTML standard being used.

But while creating the new DBMan FAQ database I've noticed it's not recognizing several tags. And in my page tops I'm using both:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
and
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

This displays before:

print "Content-type: text/html\n\n";

but it doesn't help with this database??


Unoffical DBMan FAQ

http://creativecomputingweb.com/dbman/index.shtml/
Quote Reply
Re: [LoisC] Just something I observed... In reply to
Oh! I only knew about add the line. I didn't know about the rest. Would adding the rest of the lines make it more compatible with a wider range of browsers?
Julian
Quote Reply
Re: [vampy] Just something I observed... In reply to
Yes, that is why those codes should be on all static pages and I include them in scripts.

It helps the browser to interpret your pages.

It is very important to use the correct DOCTYPE for the HTML standard you are using to have the pages read correctly. I read some interesting article about using HTML 4.0 DOCTYPE but I can't remember where I left the copy I saved.

Within the DBMan script there is alot of tags that do not comply with standards above 3.0 such as font faces, so it's best to set it to 3.0 if you use those tags.

My webmagic site has information about the use of META tags and page headers. I might have even included a link to that article I mentioned above.



Unoffical DBMan FAQ

http://creativecomputingweb.com/dbman/index.shtml/