Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Perl and Browser compatibility

by davorg (Chancellor)
on Feb 14, 2007 at 08:30 UTC ( #599876=note: print w/replies, xml ) Need Help??


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.";

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://599876]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2022-12-05 00:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?