Color Vs. No Color question

Joel Fentin joel at fentin.com
Mon Jun 16 21:29:02 CDT 2003


~sdpm~
I recently made a discovery of more than passing interest to me. Those 
perl programs written with object oriented perl are drained of their 
color on Mozilla browsers and Netscape 7. Those written with print 
statements using html tags retain their color. Both types of programs 
always retain their color on older versions of Netscape and on Internet 
Explorer. Do I have to use html tags to retain color on all browsers?

See:
fentin.com/cgi-bin/test1.pl
fentin.com/cgi-bin/test2.pl
==============================================
#!/usr/bin/perl -w
#!/perl/bin/perl -w
use strict;use CGI;
my $co = new CGI;
print $co->header,
$co->start_html(-title=>'test1',-bgcolor=>'DDDDDD'),
$co->start_form(-method=>'POST',-action=>'./test1.pl');
print 'This is test1';
print $co->end_form(),
$co->end_html;
==============================================
#!/usr/bin/perl -w
#!/perl/bin/perl -w
use strict;use CGI;
print "Content-type: text/html\n\n",
'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>test2</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="CCCCCC">
<form name="form2" method="post" action="test2.pl">
This is test2
</form>
</body>
</html>';
==============================================
I intend to be at the meeting tomorrow (Tuesday).
-- 
Joel Fentin    tel: 760-749-8863    FAX: 760-749-8864
email:   joel at fentin.com
Biz:   http://fentin.com
Personal:   http://fentin.com/me/




~sdpm~

The posting address is: san-diego-pm-list at hfb.pm.org

List requests should be sent to: majordomo at hfb.pm.org

If you ever want to remove yourself from this mailing list,
you can send mail to <majordomo at happyfunball.pm.org> with the following
command in the body of your email message:

    unsubscribe san-diego-pm-list

If you ever need to get in contact with the owner of the list,
(if you have trouble unsubscribing, or have questions about the
list itself) send email to <owner-san-diego-pm-list at happyfunball.pm.org> .
This is the general rule for most mailing lists when you need
to contact a human.




More information about the San-Diego-pm mailing list