How do I get the BlackBerry OS version via javascript or jquery in a Webworks app?
I tried the following code from a thread "detect blackberry os version" but it isn't working for me:
var limit = '4.5.0.127';
var version = /BlackBerry\w+\/([\d\.]+)/i.exec(navigator.userAgent);
if (version[1] && version[1] < limit) {
location.href='notcompatible.cfm';
}