EGL Development User Group

EGL Development User Group

EGL Development User Group

The EGL Development User Group is dedicated to sharing news, knowledge, and insights regarding the EGL language and Business Developer product. Consisting of IBMers, HCL, and users, this community collaborates to advance the EGL ecosystem.

 View Only
  • 1.  create iframe in handler

    Posted 03/18/15 02:39 AM

    Hi everyone,

    I have a handler and i try to add an iframe in this. I found a code example but this does't work. What's going wrong following code?

     

        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

    xarlap


  • 2.  Re: create iframe in handler

    Posted 03/18/15 02:59 AM

    Hi,

    take a look at this post:

    https://www.ibm.com/developerworks/community/forums/html/topic?id=f9bc3664-cd15-4347-8b29-482cca387c5e&ps=25

     

    But without the DIV the code works for me.

     

    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
     

    Marcel-D


  • 3.  Re: create iframe in handler

    Posted 03/18/15 03:09 AM

    I don't think this has a connection with my question...

     

    xarlap


  • 4.  Re: create iframe in handler

    Posted 03/18/15 03:17 AM

    Take a look at the post from Canturi in the middle of the thread.

     

    But your code works for me.

    Whats the error?

    Marcel-D


  • 5.  Re: create iframe in handler

    Posted 03/18/15 03:43 AM

    The error is most likely that google is prohibiting using its site inside an iframe.

    Have you tried with other websites?

    Bram_Callewaert


  • 6.  Re: create iframe in handler

    Posted 03/18/15 03:47 AM

    Let me try...

     

    xarlap


  • 7.  Re: create iframe in handler

    Posted 03/18/15 04:44 AM

    Doesn't work for me. I tried another url, but the same. The page is blank... I will try with div.

     

    xarlap


  • 8.  Re: create iframe in handler

    Posted 03/18/15 06:23 AM

    Ok, Marcel-D code works. Maybe there was the url i used. Thank you for your time.

     

    xarlap