extjs iframe-显示“无法连接错误消息”

发布于 2025-02-13 03:05:57 字数 553 浏览 0 评论 0原文

我有一个如下创建的Extjs iframe,当使用其Xtype调用时,它将渲染到页面上。但是,该页面显示“无法连接到我在SRC参数错误消息中指定的URL。但是,如果我直接从浏览器中访问SRC参数中的URL,则可以访问它。这里有什么问题?任何建议都会有所帮助!

Ext.define('myComp', {
extend:'Ext.container.Container',
xtype: 'iframe'

itemId:'iframe204'
requires: [
  'Ext.ux.IFrame',
],


layout:'fit',
height:'100%',

initComponent:
    function() {
        this.items = [];
        this.items.push({
           xtype:'uxiframe',
           itemId:'myframe',
           height:'100%',
           src: someURL
});

this.callParent(arguments);
  },
});

I have an extjs iframe created as below which gets rendered onto a page when called using its xtype. However, the page displays "cannot connect to" the URL I specified in src parameter error message. But if I access the URL which I have in src parameter directly from the browser, I am able to access it. What is the issue here? Any suggestions would really help!

Ext.define('myComp', {
extend:'Ext.container.Container',
xtype: 'iframe'

itemId:'iframe204'
requires: [
  'Ext.ux.IFrame',
],


layout:'fit',
height:'100%',

initComponent:
    function() {
        this.items = [];
        this.items.push({
           xtype:'uxiframe',
           itemId:'myframe',
           height:'100%',
           src: someURL
});

this.callParent(arguments);
  },
});

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文