Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/71.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript Digital Publishing Suite Web Viewer未显示应用程序_Javascript_Html_Adobe Dps - Fatal编程技术网

Javascript Digital Publishing Suite Web Viewer未显示应用程序

Javascript Digital Publishing Suite Web Viewer未显示应用程序,javascript,html,adobe-dps,Javascript,Html,Adobe Dps,我正在尝试制作一个网页,显示我制作的数字出版套件应用程序。我制作了这个应用程序,它在iPad和Android上运行良好。当我尝试使用web viewer和Adobes demo将其添加到网页时,我得到错误“无法定位文章。需要有效的URL”。我已经更改了代码,使其包含我的Adobe ID等,并且没有运气。以下是我的网页上当前的代码: <!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type"

我正在尝试制作一个网页,显示我制作的数字出版套件应用程序。我制作了这个应用程序,它在iPad和Android上运行良好。当我尝试使用web viewer和Adobes demo将其添加到网页时,我得到错误“无法定位文章。需要有效的URL”。我已经更改了代码,使其包含我的Adobe ID等,并且没有运气。以下是我的网页上当前的代码:

<!DOCTYPE HTML>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Bridge Demo</title>
<!--<script type="text/javascript" src="../../jsdist/WVEmbed.min.js"></script>-->
<script type="text/javascript" src="http://cdn-contentviewer.adobe.com/public/pepper/wvel/2/WVEmbed.min.js"></script>

<link rel="stylesheet" type="text/css" href="css/styles.css">

</head>

<body>

<div id="mainContainer">
    <!-- Iframe destination -->
</div>

<script type="text/javascript">
    var wvQueryParamGroups = location.search.match(/[?&^#]wv=(s[\/%\-.\w]+)/),
    wvQueryParam = wvQueryParamGroups && wvQueryParamGroups.length === 2 ? decodeURIComponent(wvQueryParamGroups[1]) : null;

    function eventCallback (message) {
        console.log(message);
        return true;
    }

    function errorCallback (message) {
        console.log(message);
        return true;
    }

    function redirectCallbackHandler (message) {
        console.log(message); 
    }

    var bridge = adobeDPS.frameService.createFrame({
        boolIsFullScreen : false,
        parentDiv : 'mainContainer',
        wrapperClasses : 'uniqueFrame',
        iframeID : 'demoFrame',
        accountIDs : 
        '2feacb12-3971-57e9-aab4-cce431a01dcd', 
        wvParam : wvQueryParam ? wvQueryParam : 
    '/s/Armagh%20GAA%20Club%20and%20County/2feacb12-3971-57e9-aab4-cce431a01dcd/Armagh%20GAA/Cover.html',
        curtainClasses : 'mask hidden', 
        eventCallback : eventCallback, 
        errorCallback : errorCallback,
        redirectCallback : redirectCallbackHandler,
        footer : [
            'Copyright ©2013 Adobe Systems Inc. All Rights use to be Reserved'
        ]
    });

</script>

</body>
</html>

桥牌演示
var wvQueryParamGroups=location.search.match(/[?&^#]wv=(s[\/%\-.\w]+)/),
wvQueryParam=wvQueryParamGroups&&wvQueryParamGroups.length==2?decodeURIComponent(wvQueryParamGroups[1]):null;
函数eventCallback(消息){
控制台日志(消息);
返回true;
}
函数errorCallback(消息){
控制台日志(消息);
返回true;
}
函数重定向CallbackHandler(消息){
控制台日志(消息);
}
var bridge=adobeDPS.frameService.createFrame({
boolIsFullScreen:false,
parentDiv:“主容器”,
包装类:“uniqueFrame”,
iframeID:'demoFrame',
帐户ID:
“2feacb12-3971-57e9-aab4-cce431a01dcd”,
wvParam:wvQueryParam?wvQueryParam:
“/s/Armagh%20GAA%20Club%20和%20County/2feacb12-3971-57e9-aab4-cce431a01dcd/Armagh%20GAA/Cover.html”,
curtainClasses:“隐藏的面具”,
eventCallback:eventCallback,
errorCallback:errorCallback,
redirectCallback:redirectCallbackHandler,
页脚:[
“版权所有©2013 Adobe Systems Inc.保留所有使用权”
]
});

确保再次检查您的帐户ID是否正确。帐户ID应该是用于发布对账单的ID

“/s/Armagh%20GAA%20Club%20和%20County/2Fecab12-3971-57e9-aab4-cce431a01dcd/Armagh%20GAA/Cover.html”


若要将内容嵌入到自己的网站上,请确保将出版物帐户设置中的托管URL设置为将在其上托管内容的URL