0

Loading third party javascript in Modal window not working???

asked 2011-05-24 17:56:34 +0800

obrand69 gravatar image obrand69
21

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

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2011-06-11 12:02:16 +0800

RyanWu gravatar image RyanWu
533 2
about.me/flyworld

updated 2011-06-11 12:02:41 +0800

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)

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2011-05-24 17:56:34 +0800

Seen: 418 times

Last updated: Jun 11 '11

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More