Calling a .js file from my HTML page is done like this:
var value1 = "Hello";
var value2 = "John";
var oHead1 = document.getElementsByTagName('HEAD').item(0);
var paramScript = document.createElement("script");
paramScript.type = "text/javascript";
paramScript.setAttribute('value1',
value1);
paramScript.setAttribute('value2',
value2);
oHead1.appendChild(paramScript);
var oHead = document.getElementsByTagName('HEAD').item(0);
var oScript = document.createElement("script");
oScript.type = "text/javascript";
oScript.src = "some.js";
oHead.appendChild(oScript);
This implementation works smoothly in Android and iPhone browsers, however, it encounters issues with the Blackberry OS 5.0 browser.
Are there any alternatives to achieve the same functionality that would be compatible with all browsers?