| Checking Browser type & Version Number [message #1015813] |
Sun, 03 March 2013 00:32 |
Ronald So Messages: 198 Registered: April 2011 |
Senior Member |
|
|
Hi,
I realized that we can issue this call to get some header information of the HttpServletRequest.
RWT.getRequest().getHeader("User-agent");
And these are two examples of return.
Mozilla/5.0 (X11; Linux x86_64; rv:10.0.5) Gecko/20120606 Firefox/10.0.5
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.56 Safari/536.5
Is there a reliable way (such as other API calls) to retrieve the browser version number other than parsing the string above?
Thanks,
Ronald
|
|
|
Powered by
FUDForum. Page generated in 0.01452 seconds