-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hello,
I am using some 3rd party javascript and it works fine when I call my zul file directly.
I am using the following directive: <?script src="../javascript/snapshotcontrol.js"?>
When I now open such zul file programmatically in a modal window, the objects references in the included javascript is not known. Therefore the Javascript not loaded.
Here is the java code that loads the page:
Window win = (Window) Executions.createComponents("/ui/zkoss/mapedit.zul",
root, args);
win.setMaximizable(true);
win.doModal();
Any hint/help appreciated
Thanks
Olivier
the <?script directive is for the normal page
for included pages, you can use <script src="xxx" />
I create a example here, please try (Click RUN)
Asked: 2011-05-24 17:56:34 +0800
Seen: 418 times
Last updated: Jun 11 '11