-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hello, i'm trying to embed an app into an html page and i'm doing the same thing i found here: https://blog.zkoss.org/2019/12/17/zk-9-highlight-embedding-your-zk-app-into-a-3rd-party-app/ except for the fact that i don't use NodeJs but a wordpress app.
I have working ZK app at address https://lotto.animasystems.com/Lotto/futurobet/index.zul (you can test it yourself)
I've added the embed code into zk.xml file
<library-property>
<name>org.zkoss.web.servlet.http.embedded.enabled</name>
<value>true</value>
</library-property>
But the javascript is not found here:
https://lotto.animasystems.com/Lotto/zkau/web/js/zkmax/embedded/embedded.js
and this is my tomcat output.
22-Jan-2020 18:05:43.335 INFO [main] org.zkoss.zk.ui.http.WebManager.<init> Starting ZK 9.0.0 EE (build: 2019121010)
22-Jan-2020 18:05:43.350 INFO [main] org.zkoss.zk.ui.sys.ConfigParser.parseConfigXml Loading system default
22-Jan-2020 18:05:43.435 INFO [main] org.zkoss.zk.ui.sys.ConfigParser.parse Parsing jar:file:/tomcat9/webapps/Lotto/WEB-INF/lib/zul-9.0.0.jar!/metainfo/zk/zk.xml
22-Jan-2020 18:05:43.444 INFO [main] org.zkoss.zk.ui.sys.ConfigParser.parse Parsing jar:file:/tomcat9/webapps/Lotto/WEB-INF/lib/zkex-9.0.0.jar!/metainfo/zk/zk.xml
22-Jan-2020 18:05:43.447 INFO [main] org.zkoss.zk.ui.sys.ConfigParser.parse Parsing jar:file:/tomcat9/webapps/Lotto/WEB-INF/lib/zkmax-9.0.0.jar!/metainfo/zk/zk.xml
22-Jan-2020 18:05:43.451 INFO [main] org.zkoss.zk.ui.sys.ConfigParser.parse Parsing file:/tomcat9/webapps/Lotto/WEB-INF/zk.xml
So everything should be ok. What is wrong with my installation?
when I try to access your script-url at ... https://lotto.animasystems.com/Lotto/zkau/web/js/zkmax/embedded/embedded.js ... I get a response. So this looks correct to me, maybe you fixed the problem in the mean time.
Do you get any cross origin errors (CORS) in your browser console, when trying to embed this into your wordpress page?
Asked: 2020-01-23 01:25:01 +0800
Seen: 17 times
Last updated: Feb 04 '20
Column Layout Background Color
Migrate to ZK 9 From ZK 8 gives error
Component definition not found: drawer in [LanguageDefinition: xul/html] [closed]
ZK 9 Drawer Component - Help to set parent
ZK 9 Listhead property children not found exception
How to check new features of ZK 9