Thursday, May 26, 2011

OBIEE Catch the {mobile} browser

More people use mobile the device to connect to OBIEE. Since they don’t all have the same capabilities, you might want to catch the browser or device making the request. To get the info add this to a dashboard page:

<div id="example"></div>

<script type="text/javascript">

txt = "<p>Browser CodeName: " + navigator.appCodeName + "</p>";
txt+= "<p>Browser Name: " + navigator.appName + "</p>";
txt+= "<p>Browser Version: " + navigator.appVersion + "</p>";
txt+= "<p>Cookies Enabled: " + navigator.cookieEnabled + "</p>";
txt+= "<p>Platform: " + navigator.platform + "</p>";
txt+= "<p>User-agent header: " + navigator.userAgent + "</p>";
txt+= "<p>screen.width: " + screen.width + "</p>";
txt+= "<p>screen.height: " + screen.height + "</p>";



Based one or more criteria you can do a redirect to a more “suitable” dashboard page.

Till Next Time

No comments: