Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Different Browsers ...

Quote Reply
Different Browsers ...
I want to use a special iframe-tag for a shopping card. This tag only works for MS-Explorer and NS6+.

It would be necessary to display some html-parts of the templates in different way, depending off the browser.

This should be for dynamic pages. Does someone knows an easy solution for that?

Michael

--
Michael Skaide

http://www.cycle24.de

Quote Reply
Re: [Michael Skaide] Different Browsers ... In reply to
Hi,

You could use a global:

is_ie =>
sub {
$ENV{HTTP_USER_AGENT} =~ /MSIE/ ? 1 : 0;
}

and then do:

<%if is_ie%>
ie html here
<%endif%>

The user agent check may need to be a bit better, but you get the idea.

Cheers,

Alex
--
Gossamer Threads Inc.