Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/csharp-4.0/2.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
在Extjs中打开包含外部Java脚本的窗口_Extjs_Extjs4_Linkedin - Fatal编程技术网

在Extjs中打开包含外部Java脚本的窗口

在Extjs中打开包含外部Java脚本的窗口,extjs,extjs4,linkedin,Extjs,Extjs4,Linkedin,我想在ExtJS中打开一个Ext.Window,它将打开一个包含LinkedIn外部javascript的html文件 我有以下代码: Ext.create('Ext.window.Window', { title: 'About us', height: 400, width: 800, layout: 'fit', items: [{ autoLoad: { url: 'linkedin_emp1.html',

我想在ExtJS中打开一个
Ext.Window
,它将打开一个包含LinkedIn外部javascript的html文件

我有以下代码:

Ext.create('Ext.window.Window', {
    title: 'About us',
    height: 400,
    width: 800,
    layout: 'fit',
    items: [{
        autoLoad: {
            url: 'linkedin_emp1.html',
            scripts: true
        }
    }]
}).show();
linkedin_emp1.html
文件是:

人员名单 加载html文件后,我在窗口中看到的只是“人员列表”字符串,而不是来自linkedin javascript的内容

当我从浏览器中打开相同的html文件时,我看到了一切

看起来我无法在html中运行外部javascript

有什么办法吗?

您可以在ExtJS中使用config元素

new Ext.Window({
    title : "About us",
    width : 400,
    height: 800,
    layout : 'fit',
    items : [{
        xtype : "component",
        autoEl : {
            tag : "iframe",
            src : "linkedin_emp1.html"
        }
    }]
}).show();