firefox3 identification.

Hi all,

case request.user_agent     when /(MSIE|Opera)/       'ie'     when /(Firefox|GranParadiso)/       'firefox'     else       'safari'     end

this code works fine for me and due to alignment problems i created another css file firefox3.

but how to identify browser and its version for firefox3.

when /(Firefox 3.0|Gecko)/       'firefox3'

i write this but not working.

can anyone suggest what should i write like

Firefox>GranParadiso its work for ff2 so what should i write for ff3

case request.user_agent

when /(MSIE|Opera)/

  'ie'

when /(Safari)/

  'safari'

else

  'firefox3'

end

I can’t test it. But it’s a idea.

Regards, Luiz Vitor.

luiz,

what about links and opera? you’re just chucking them in the same category as firefox 3.

Ryan Bigg wrote:

luiz,

what about links and opera? you're just chucking them in the same category as firefox 3.

well when /(Firefox|GranParadiso)/       'firefox' this works fine for ff2 and there is alignment problem in ff3 so i made another css file for ff3 and just want to use based on ff2 or ff3

so what should be the string ?

that i use?

this is how mine FF3 is sending the request from my XP

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: 1.9.0.1) Gecko/2008070208 Firefox/3.0.1

Would something like this work for you?

case request.user_agent     when /(MSIE 7)/       'ie7'     when /(MSIE 6)/       'ie6'     when /(Firefox 3)/       'ff3'     when /(Firefox 2)/       'ff2'     when /(Firefox 1)/       'ff1'     when /(Safari)/       'safari'     else       'unsupported'     end