我在嵌入式流程中使用简单的付款设置。
一切都运行良好,除了返回和取消网址被加载到灯箱,而不是父窗口,所以我最终得到一个带有返回网页的灰色窗口,用户无法做任何事情
例如,这是取消页面中的确切代码:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script src="https://www.paypalobjects.com/js/external/dg.js"></script>
</head>
<body>
<div class="center">
<p>Unable to complete payment, due to either a payment cancelation, or an error.</p>
<p>No funds were transfered.</p>
</div>
<script type="text/javascript" charset="utf-8">
dgFlow = top.dgFlow || top.opener.top.dgFlow;
dgFlow.closeFlow();
top.close();
</script>
</body>
当我查看控制台输出时,它会显示
top.opener is null
它指的是
行dgFlow = top.dgFlow || top.opener.top.dgFlow;
返回网址是否应该不加载到父窗口?
谢谢你看看。