-
Bug
-
Resolution: Fixed
-
Normal
-
6.0.0
-
None
-
Security Level: Jimmy
-
None
-
None
The button does not work when loading zul page from Ajax request in html
test.html
<?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Pragma" content="no-cache" /> <meta http-equiv="Expires" content="-1" /> <title>Mash-up of ZUML pages</title> <script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.min.js"></script> </head> <body> <div id="anchor" style="border:solid 1px #f00;"></div> <button onclick="$('#anchor').load('index.zul')">Load mobile layout</button> </body> </html>
index.zul
<zk> <window title="hello" border="normal"> <custom-attributes scope="request" org.zkoss.zk.ui.page.redrawCtrl="true"/> <button id="btn" label="hello" onClick='alert("Hello")' /> </window> </zk>
Note: it works in ZK 5, but not in ZK 6.