http://qs321.pair.com?node_id=599876


in reply to Perl and Browser compatibility

Perl knows nothing about browsers. And browsers know nothing about Perl.

Browsers simply interpret the HTML and/or Javascript that your Perl program creates. If the HTML or Javascript doesn't work in every browser then you will have a problem.

The solution is to look at your HTML and Javascript and work out how to achieve the effects you want in a cross-browser manner (sticking to W3C standards would be a good start). You then write a Perl program that creates that HTML and Javascript.

Replies are listed 'Best First'.
Re: Perl and Browser compability
by dorward (Curate) on Feb 14, 2007 at 09:53 UTC

    Well, Internet Explorer might know something about Perl ;)

    (This has nothing at all to do with CGI though and doesn't have any bearing on the OP's question.)

Re^2: Perl and Browser compatibility
by Gangabass (Vicar) on Feb 15, 2007 at 04:43 UTC
    Check your JavaScript for errors. W3C validator doesn't check errors in your JavaScript code. It's validate only markup (HTML+CSS).
Re^2: Perl and Browser compatibility
by sauoq (Abbot) on Feb 15, 2007 at 16:10 UTC
    Perl knows nothing about browsers. And browsers know nothing about Perl.

    While this is true, it misses the point. Code written in Perl can most definitely know something about browsers.

    While I very much doubt it has anything to do with the OP's question, CGI.pm does in fact check the user agent to work around a bug in IE3.01 on macs.

    -sauoq
    "My two cents aren't worth a dime.";