我试图在IE11兼容的web应用程序和使用window.open打开的弹出窗口之间进行通信。下面是我在IE11兼容的web应用程序中使用的代码:
var options = 'titlebar=no,resizable=no';
var url = '<different app url but within same org>';
var child = window.open(url,'window',options);
child.postMessage({message: 'requestResult'},
我正在尝试angularjs模式弹出指令。在弹出窗口中,我使用了tabs和panes指令。我有一个两个文本框(都有相同的ng-model=myName),一个在我的主页中,另一个在我的弹出窗口中。如果我更改主页中的值,它将在弹出文本框中更新,但当我更改弹出文本框时,主页文本框不会更新。如何修复它。
// html page
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html ng
在polyfills.ts中,注释掉的一行内容如下:
/** IE10 and IE11 requires the following for the Reflect API. */
// import 'core-js/es6/reflect';
什么是“反射API”?在IE中运行IE应用程序时,它需要哪些IE用例?这个导入语句通常很重要吗?令人惊讶的是,谷歌和StackOverflow并没有为我提供很多/任何结果。
我正在尝试用子窗口中的可单击链接更新父窗口中的图像。我已经用一个javascript文件预加载了父窗口中的图像。"scriptss.js“我的问题是我需要用子脚本"scriptremote.js”访问父窗口的预加载图像再次感谢所有的JS帮助!JS (scriptss.js)
var newWindow = null;
window.onload = init;
var i = 0;
image_object = new Image();
myImages = new Array(); // declare array
myImages[0]="images/img1.j
此提取在Chrome中运行良好:
fetch( this.props.url, {credentials:'same-origin'})
.then( (data) => data.json() )
.then( (data) => {
if( data.length > 0) {
// do some stuff
} else {
console.log('No data Richard of the Beard of the Lewis.');
}
目前,我得到错误的Uncaught TypeError: Cannot read properties of undefined (reading 'split')当我点击,它没有显示新的窗口。此错误仅在我开始使用Microsoft Edge中的网站时引起。在此之前,我们在IE11中使用。但是目前,IE11正在关闭,所以尝试在边缘中开始使用并导致该错误。我能知道怎么做吗?在以前,它在IE11中运行良好,不会导致错误。
var newWindow;
function openBreakdown(x){
// alert('kpi breakdown is not
我在IE11工作
我有一个代码,打开一个新窗口,并为加载事件在新窗口上添加一个eventListener。
var newWindow = window.open(someURL, ..., ...);
newWindow.addEventListener('load', callback, true);
// when IE11 executes this line, it throws error "object doesn't support property or method".
当我在问题行打开调试器时,newWindow对象的方法列表中列