在Extjs中打开包含外部Java脚本的窗口
我想在ExtJS中打开一个在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',
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();