-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi,
I would like to embed several ZK apps (widgets) distributed on a foreign HTML page. The third-party system AEM offers so-called HTML components for this, where I can store the ZK code for calling the zEmbedded js API. This also works perfectly with one component. However, when I place multiple HTML components on the page using the zEmbedded js API, the ZK content no longer loads. Is it fundamentally possible to do this?
Komponente 1:
<div id="embeddedZK-1">
Loading...
</div>
<script id="embeddedScript" src=" http://localhost:8080/aemwidget/zkau/web/js/zkmax/embedded/embedded.js"></script>
<script>
zEmbedded.load('embeddedZK-1', 'http://localhost:8080/aemwidget/);
</script>
Komponente 2:
<div id="embeddedZK-2">
Loading...
</div>
<script id="embeddedScript" src=" http://localhost:8080/aemwidget2/zkau/web/js/zkmax/embedded/embedded.js"></script>
<script>
zEmbedded.load('embeddedZK-2', 'http://localhost:8080/aemwidget2/);
</script>
I saw you load 2 pages from 2 different web app.
Because of this bug, https://tracker.zkoss.org/browse/ZK-4715, you need to use ZK 9.5.1 or above to make it work correctly.
Besides, you cannot embed pages from different ZK versions.
Asked: 2022-08-09 20:24:01 +0800
Seen: 7 times
Last updated: Aug 11 '22
bug with intboxes on mobile devices
zk keikai-how to add custom button/label to formulabar?
zk-keikai- update multiple cells parallel at same time asynchronously
zk-keikai-How to auto fit column width based on text
zk-keikai-ClipboardPateEvent-called twice
Reference a spring bean from VariableResolver