如何在HTML5接收器而不是Windows接收器中启动Citrix Xenapp?

时间:2015-09-15 08:35:46

标签: citrix xenapp storefront

我使用Citrix StoreFront Web API并实施了所有步骤来验证请求并获取资源列表。我还能够使用以下代码启动应用程序:

function performLaunch(resource) {
        var icaFileUrl = resource.launchurl,
            csrfToken = getCookie('CsrfToken'),
            currentTime = (new Date()).getTime(),
            frameId = "launchframe_" + currentTime;

        // To initiate a launch, an ICA file is loaded into a hidden iframe.
        // The ICA file is returned with content type "application/x-ica", allowing it to be intercepted by the Citrix HDX
        // browser plug-in in Firefox/Chrome/Safari. For IE, the user may be prompted to open the ICA file.
        $('#hidden-iframes').append('<iframe id="' + frameId + '" name="' + frameId + '"></iframe>');

        if (csrfToken != null) {
            icaFileUrl = updateQueryString(icaFileUrl, "CsrfToken", csrfToken);
        }

        // Web Proxy request to load the ICA file into an iframe
        // The request is made by adding
        icaFileUrl = updateQueryString(icaFileUrl, 'launchId', currentTime);
        $("#" + frameId).attr('src', icaFileUrl);

        console.log('perform launch - url: ' + icaFileUrl);
    }

但不幸的是,它在Citrix Receiver for Windows中启动了应用程序。但我的目标是在浏览器中启动应用程序。我们已在Web服务器上安装了Citrix Receiver for HTML5,但我不知道如何在那里启动应用程序。

1 个答案:

答案 0 :(得分:-1)