0

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

handler Test type RUIhandler{initialUI =[ui], onConstructionFunction = start, cssFile = "css/test.css", title = "Test"}

ui Div{padding = 10, children =[Box, BoxDataGrid, iframe]};

iframe Widget{tagName = "iframe", width = "500", height="100"};
 function start()
    iframe.setAttribute("src", "http://www.google.gr");
end

end
4

1 回答 1

0

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

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



iframe Widget{tagName = "iframe", width = "500", height="100"};
 function start()
    iframe.setAttribute("src", "http://www.frommedv.de");
end

end
于 2015-03-18T10:33:42.647 回答