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

我使用 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

【问题讨论】:

    标签: iframe egl rich-ui


    【解决方案1】:

    也许是网址。谷歌禁止在 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
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-07-24
      • 2011-03-06
      • 2013-08-15
      • 1970-01-01
      • 2013-01-30
      相关资源
      最近更新 更多