Gossamer Forum
Home : Products : DBMan : Customization :

Printout mod problem

Quote Reply
Printout mod problem
Hi!

I have migrated from win to linux and now printable format doesn't work under Netscape but it works under IE. Before it was working fine. Under Netscape it shows the code. Has anyone similar situation ?
You can test it here:
https://konik.homelinux.net/db.cgi

SasaUnsure
Quote Reply
Re: [atomant] Printout mod problem In reply to
Usually when it doesn't work in Netscape you have to check over your html coding and find out where the HTML errors are.

IE is much more acceptable of poor coding than Netscape.

From glancing at the page I can see you have for example:

<font size="1"><Font face="Verdana, Arial, Helvetica" Size=1>MALE / MĀLE / OGIER</FONT></font>

You are opening a font tag before closing a previous one. You should use:

<Font face="Verdana, Arial, Helvetica" Size=1>MALE / MĀLE / OGIER</FONT>

Most WYSIWYG editors seems to always add the font tags in weird ways. Hope this helps to make it work in Netscape.

Not sure why the page is not showing any HTML or BODY tags, it that the case with IE also?

Unoffical DBMan FAQ

http://creativecomputingweb.com/dbman/index.shtml/
Quote Reply
Re: [LoisC] Printout mod problem In reply to
AFAIK there is no problem with nesting font tags?

Last edited by:

Paul: Feb 2, 2003, 1:56 PM
Quote Reply
Re: [Paul] Printout mod problem In reply to
I beg to differ Paul, if you use any accurate validation program for checking HTML coding or you look in any book .. font tags shouldn't be nested.

I'm not talking about validation that check for specific browsers, but for the HTML standards.

Font tags are container elements which means you must have an opening an closing tag. It's not an empty element.

No need to reply as I'm not going to argue this point with you .. search the web and verify your way of coding.

Unoffical DBMan FAQ

http://creativecomputingweb.com/dbman/index.shtml/
Quote Reply
Re: [LoisC] Printout mod problem In reply to
I am not a programer...I have made this code with the help of Frontpage express. So any suggestion in "plain english" would be very nice. I have no idea what it means "nested font tags".Blush
Quote Reply
Re: [LoisC] Printout mod problem In reply to
Lois I think you are totally overreacting. I was asking out of interest and perhaps hoping you could confirm the correct answer.

Last edited by:

Paul: Feb 3, 2003, 3:36 AM
Quote Reply
Re: [atomant] Printout mod problem In reply to
What I'd recommend is passing your html through the W3 validator.

http://validator.w3.org

If you can at least fix most of the errors it displays then you have a really good chance of cross browser compatibility.
Quote Reply
Re: [Paul] Printout mod problem In reply to
Well, I have extracted this part out of html and make a new file. After I send it thru validator it gives me this error:

Fatal Error: No DOCTYPE specified!

Strange is that only the printout is not working while records add or view works normaly and they have been made from the same source. And I don't have there specified DOCTYPE.
Any idea?
Quote Reply
Re: [atomant] Printout mod problem In reply to
Its always best to add a doctype and character encoding to your html pages - then when you pass it through the validator again it will be able to scan your html properly for any errors.
Quote Reply
Re: [Paul] Printout mod problem In reply to
I don't know which doctype I am using. If someone want to look at the code here it is attached.
Quote Reply
Re: [atomant] Printout mod problem In reply to
When I look at the source code for the "printable format" I don't see any of the following tags:

<HTML><HEAD><TITLE><BODY> etc.

It just starts out with <TABLE>

I believe this is going to be your problem.
Quote Reply
Re: [Watts] Printout mod problem In reply to
Yes, you are wright. But I have striped out my code from html.pl and put it in a new frontpage express file so thats why there are these tags.
Quote Reply
Re: [atomant] Printout mod problem In reply to
In your sub sub html_printable or whatever you have called the sub which has your page layout add for instance:

%rec = &get_record($in{$db_key});
&html_print_headers;

print qq|
<HTML><HEAD><TITLE>$rec{'Song_Title'}</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<META HTTP-EQUIV="cache-control" CONTENT = "no-cache">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache"></HEAD>
<BODY BGCOLOR="#FFF6F0" TEXT="#110000" LINK="#660000" VLINK="#996600" ALINK="#CC9933">

Then your table codes here .....

Then after your </TABLE> tag add:

</BODY></HTML>

I didn't include the DOCTYPE because it would not match the HTML standard you are using.

Hope this helps

Unoffical DBMan FAQ

http://creativecomputingweb.com/dbman/index.shtml/
Quote Reply
Re: [LoisC] Printout mod problem In reply to
Nope, it doesn't help...still the same problem. You can check it yourself on this page:
https://konik.homelinux.net/db.cgi

You just select List All and then you'll find et the end of the record Printable Format link.
In IE is still without the problem.
Quote Reply
Re: [atomant] Printout mod problem In reply to
Its definitely a html thing. Netscape is a lot more fussy about html than IE which is the reason IE works. Anything slightly amiss will cause display problems in Netscape.
Quote Reply
Re: [Paul] Printout mod problem In reply to
Here is my complete html.pl . If someone want to look at it and tells me what is wrong.Unsure
Quote Reply
Re: [atomant] Printout mod problem In reply to
I just looked at your html.pl file. You still have not made the modifications suggested by Lois in her posting above. You must do this before trying anything else.

The problem is certainly the fussy nature of Netscape. Any <TAG> left uncancelled causes it to stop thinking. According to my web logs, hardly anyone uses Netscape, so I personally am not much bothered by incompatibilities. Netscape handles many things differently. It is time that IE and Netscape were fully compatible. The only sensible option would be to work to IE standards which will force all Netscape users to install IE. Then we can wave goodbye to Netscape, along with our Betamax video tapes.

The amount of development time saved on addressing cross-compatibility issues would be huge, for html and javascript users.

As for Linux, this is best left as the OS for web hosts and people who prefer to spend time tweaking rather than using their computers. Most users find Microsoft OSs the easiest to use.

And I didn't mention Apple. Wink
-------------
David Olley
Anglo & Foreign International Limited,
http://www.firehelmets.co.uk

There are 10 types of people in the world: those who understand binary, and those who don't.
Quote Reply
Re: [davidolley] Printout mod problem In reply to
I have tried before what LoisC suggested and it didn't help so I removed it. You are wright about that most of the people uses IE. So looks like I will just leave it like it is.