EGL 在处理程序中创建 iframe

Posted

技术标签:

【中文标题】EGL 在处理程序中创建 iframe【英文标题】:EGL create iframe in handler 【发布时间】:2015-03-18 06:44:30 【问题描述】:

我使用 egl 丰富的 ui。我有一个处理程序,我尝试在其中添加一个 iframe。我找到了一个代码示例,但这不起作用。下面的代码出了什么问题?

handler Test type RUIhandlerinitialUI =[ui], onConstructionFunction = start, cssFile = "css/test.css", title = "Test"

ui Divpadding = 10, children =[Box, BoxDataGrid, iframe];

iframe WidgettagName = "iframe", width = "500", ;
 function start()
    iframe.setAttribute("src", "http://www.google.gr");
end

end

【问题讨论】:

【参考方案1】:

也许是网址。谷歌禁止在 iframe 中使用其网站。以下代码有效。

handler test5 type RUIhandler initialUI = [ iframe ],onConstructionFunction = start, cssFile="css/frommclient.css", title="test5"



iframe WidgettagName = "iframe", width = "500", ;
 function start()
    iframe.setAttribute("src", "http://www.frommedv.de");
end

end

【讨论】:

以上是关于EGL 在处理程序中创建 iframe的主要内容,如果未能解决你的问题,请参考以下文章