TaminoLib.js + ASP

It has recently been discovered that the TaminoLib.js shipped with Tamino 4 fails to work in a server environment such as ASP (SAGSIS 239870). The following source changes should fix this. You may also have to set XMLHTTP to a suitable value.

<<< indicates old lines(s)
>>> indicates new lines(s) [above/below for cut/paste]

In “function BrowserHandler()”:

<<< this.BrowserType = BROWSER_UNKNOWN;

>>>
this.BrowserType = BROWSER_INTERNET_EXPLORER; // assume IE
>>>

In “function getUserAgent(oBrowserHandler)”

<<< var sAgent = navigator.userAgent.toLowerCase();

>>>
var sAgent = “”;

try
{
sAgent = navigator.userAgent.toLowerCase();
}
catch (ex)
{
return “Server Environment”;
}
>>>

Change top level definition of “isMOZ”

<<< var isMOZ = (!document.all && document.getElementById) ? true : false;

>>>
var isMOZ;

try
{
isMOZ = (!document.all && document.getElementById) ? true : false;
}
catch (ex)
{
isMOZ = false;
}
>>>