Re: Browser Detection

2014-08-12 Thread Michael Gentry
Here is what I currently use (which may not be the best approach, but works for my present needs). UserAgent Service: https://gist.github.com/mrg/b814a42d86597440c9d9 I primarily use it in this IEWarning component, which I have in my Layout: https://gist.github.com/mrg/ba7395fa89a48a4c423d mrg

Re: Browser Detection

2014-08-12 Thread Net Dawg
Thanks.  Probably wrong question.  Best practice seems to be to detect capability supported in the user agent, not type, version etc. http://stackoverflow.com/questions/13478303/correct-way-to-use-modernizr-to-detect-ie   On Monday, August 11, 2014 11:42 PM, Muhammad Gelbana wrote: I w

Re: Browser Detection

2014-08-12 Thread Muhammad Gelbana
I would @Inject Tapestry's Request and read it's headers. Just google on how to detect a specific browser. Since you'll probably handle multiple browsers you may find these components very handy: http://tapestry.ap

Browser Detection

2014-08-12 Thread Net Dawg
Does tapestry have a way to detect browser/version within component/page class?  Or by convention recommend some procedure?  To support logic rendering something

Re: T5 Internet Browser Detection?

2010-09-22 Thread Thiago H. de Paula Figueiredo
On Wed, 22 Sep 2010 04:33:38 -0300, ael wrote: Is it possible that tapestry can detect web browser? Yes. Just @Inject Request and use request.getParameter("User-Agent") to get the user agent string. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consult

Re: T5 Internet Browser Detection?

2010-09-22 Thread Kristian Marinkovic
o use the servlet api directly. g, kris Von:ael An: users@tapestry.apache.org Datum: 22.09.2010 09:34 Betreff:T5 Internet Browser Detection? Is it possible that tapestry can detect web browser? I already implement it using JQuery. Using script type="