0

Clients.evalJavaScript

asked 2014-09-02 10:17:12 +0800

popo21423 gravatar image popo21423
0

For example i click sendButton first i call Clients.evalJavaScript to create a html file second i want use the html file to other thing but Clients.evalJavaScript not runtime to evalJavaScript so in second i can't get the html file

Any solution can call Clients.evalJavaScript in runtime?

thanks

delete flag offensive retag edit

Comments

try adding javascript code in body onload event of the html file.

vincentjian ( 2014-09-03 05:47:01 +0800 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-09-07 11:49:36 +0800

Darksu gravatar image Darksu
1991 1 4

Hello popo21423,

Generally it is a bad idea to create html with javascript. It is better to generate html with a server side language.

In the following url there is an alternative example on creating dynamic html using EL, but i would generate it via java.

http://zkfiddle.org/sample/3o3uc9m/2-dynamic-html-using-EL#source-1

Best Regards,

Darksu

link publish delete flag offensive edit
Your answer
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
1 follower

RSS

Stats

Asked: 2014-09-02 10:17:12 +0800

Seen: 29 times

Last updated: Sep 07 '14

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