esharris has asked for the wisdom of the Perl Monks concerning the following question:

I have a script that uses CGI::defaults. If I press the defaults button on the resulting web page, the reloaded page has a different font. Going back to the page later or pressing a submit button restores the standard font. My script never produces html to change the actual font; it only uses CGI::font to change the color of text.

I want to find out what is happening. Has anyone experience this? If so, what did you do to fix the problem? If not, how would you proceed? I am using Perl 5.8.3 and a recent version of CGI.

Replies are listed 'Best First'.
Re: CGI defaults changes font
by davorg (Chancellor) on Jul 30, 2004 at 15:31 UTC

    Have you tried looking at the HTML generated to see if there is any obvious difference?

    Do you have a short (20 lines or so) program that demonstrates the problem?

    --
    <http://www.dave.org.uk>

    "The first rule of Perl club is you do not talk about Perl club."
    -- Chip Salzenberg

      I'm using MIE 6.028.

      When I view both sources from the browser, I see no obvious differences in the html.

      When I try to save the source with the changed font to a file, I get a warning message: "The web page may not save correctly". The format of the saved file looks much different. The content is virtually the same. But there is nothing that clearly indicates a change in the font.

Re: CGI defaults changes font
by ambrus (Abbot) on Jul 30, 2004 at 14:10 UTC

    I'm not sure, but I guess that might be a browser problem, especially if you are using Netscape. Try with a completely different browser to see if there's any difference.

Re: CGI defaults changes font
by xorl (Deacon) on Jul 30, 2004 at 14:14 UTC
    Is there any weird font tags or new CSS in the reloaded form? If not my guess would be some weird browser problem as was suggested by the other responce.