Originally Posted by
Acorn
Rob, in the interim, perhaps Xara (you for a virtual beer) could produce a small script to check the browser type and alert the viewer to the problem and offer a download of Chrome or Firefox?
Acorn
I have absolutely no idea if this will work, we don't have a Samsung on v4 unfortunately:
Code:
<script>
function getAndroidVersion(ua) {
ua = (ua || navigator.userAgent).toLowerCase();
var match = ua.match(/android\s([0-9\.]*)/);
return match ? match[1] : false;
};
var AndVer = getAndroidVersion(); //"4.2.1"
parseFloat(AndVer); //4.2
if(navigator.userAgent.match(/SAMSUNG|SGH-[I|N|T]|GT-[I|P|N]|SM-[N|P|T|Z]|SHV-E|SCH-[I|J|R|S]|SPH-L/i) && AndVer < 5 && AndVer > 3) {
alert("Your NavBar may not work, please use Firefox or Chrome if so");
}
</script>
Insert that into the Web Properties > Page > HTML Code Head. I think it would be better on the index page rather than inserted into the website tab as it would get annoying on every page if you can navigate.
I've loaded the script into here: http://robert74.magix.net/atest/ , it would be awesome if someone with a samsung andriod v4 tablet could test it out.
Credit goes to here:
http://stackoverflow.com/questions/1...-samsung-phone
http://stackoverflow.com/questions/7...-by-javascript
Thanks
Rob
Bookmarks