browserFrame in JMix 2.4?

Hi there,
just arrived in JMix 2.4 from 1.6, is there still a browserFrame control?
What would work, if I have complete HTML pages, including …head> …script> …body>…, that are waiting to work. Especially script> must work again.
Thanks for getting me on the track again,
br
HP

Hello!

The similar component to the BrowserFrame is the IFrame

See example in UI samples :: iframe-pdf

Hello!


  <iframe id="iframeAnthrop" classNames="brief-box" height="100%" width="100%"
                    sandbox="ALLOW_SAME_ORIGIN ALLOW_SCRIPTS"/>

brings up:

IllegalArgumentException: No enum constant com.vaadin.flow.component.html.IFrame.SandboxType.ALLOW_SAME_ORIGIN ALLOW_SCRIPTS

How can I combine 2 or more sandbox parameters?

Thanks,
HP

Hello!

Try to separate values by comma, for instance:

<iframe sandbox="ALLOW_SAME_ORIGIN, ALLOW_SCRIPTS"/>

Thanks, I tried combinations with and without comma and also the enum writing allow-same-origin vs. ALLOW_SAME_ORIGIN… Nothing worked fine,
but,
my solution now, goes in the controller:


iframe.setSandbox(IFrame.SandboxType.ALLOW_SCRIPTS, IFrame.SandboxType.ALLOW_SAME_ORIGIN);

Thanks,
HP