Gday monks
i am having compatability issues with my website between IE and Netscape.
What i need to do is check to see which browser a user has, and if it is Netscape, have Perl alter the HTML a little and then print out the page.
I have considered using Javascript when the page loads up to detect which browser the user has, and if it is Netscape, having it call a Perl program which will open the HTML file, alter it, and then print it out.
The problem with this is that i don't know how to have the Perl program know which file to open, as i intend to have this check done for every page in my site.
How can I do this?
Thanks Guys.
Thanks for the replies, i guess your right in that its not worth going to all the trouble. The problem i am having is for some reason in NS and Opera everything on my page appears up about 10 or so pixels down. i have no idea why this is so i was just thinking i could use Perl to insert a 10 pixel or so spacer gif to counteract this if the browser is not IE. I'm sure there is another way to fix it, it's just that i am quite new to Perl and am still marvelling at its capabilities :)
if you want to check out what i mean go to http://www.hydrocool.com, and view the page in both IE and NS.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.