プロジェクト

全般

プロフィール

[GGH4.X] 自己責任で構わないので IE7 でActiveXクライアントを利用する方法はないのか?

技術ノート
2015/01/23

[番号]
技術ノート KGTN 2015012101

[現象]
[GGH4.X] 自己責任で構わないので IE7 でActiveXクライアントを利用する方法はないのか?

[説明]
logon.html が置かれたフォルダにある logon_PluginFunctions.js を以下のように修正 (IE7の認識処理の追加) することで,IE7でActiveXクライアントを利用出来るようになります.なお,このコードは GGH4.8.2 の環境で動作を確認しておりますので,他のバージョンでは修正が必要な場合があります.

function GetPlatform()
{
    // Browser name string, major version, and agent string
    var name = navigator.appName;
    var ver = parseInt(navigator.appVersion);
    var agent = navigator.userAgent;
    var platform = navigator.platform;

    // Microsoft Internet Explorer and version
    this.msie = (document.documentMode != undefined);
    this.msie4up = (document.documentMode >= 4);
    this.msie6up = (document.documentMode >= 6);
    this.msie7up = (document.documentMode >= 7);
//--- for IE7 --- (ここから追加)
var userAgent = window.navigator.userAgent.toLowerCase();
var appVersion = window.navigator.appVersion.toLowerCase();
if (userAgent.indexOf("msie") != -1)
{
    // window.alert(appVersion);
    if (appVersion.indexOf("msie 7.") != -1)
    {
        this.msie = true;
        this.msie4up = true;
        this.msie6up = true;
        this.msie7up = true;
        // window.alert('IE7');
    }
}
//--- (ここまで追加)

    // Netscape Navigator and version
    this.ns = (name.indexOf("Netscape") != -1);
    this.ns4up = (this.ns && (ver >= 4));

ファイル

KGTN2015012101.pdf (59.3 KB) kitasp 技術センター, 2015/01/23 16:52