0

pass data from server side to client side javascript

asked 2015-02-04 04:29:51 +0800

takumi gravatar image takumi
12 3

Hello,

I'm trying to use c3.js/d3.js with zk. Then the plotting data will be generated at server side.

I can use c3.js with zk if zul file has the data statically . But I'm not sure for above case. How can I pass the server side data to client side ?

hopefully the scenario is:

  1. click button
  2. server side generate data
  3. client side get the data
  4. client side execute c3.chart and graph appears.
delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-02-04 10:02:08 +0800

cyiannoulis gravatar image cyiannoulis
1201 10

updated 2015-02-05 08:16:56 +0800

I think this older post Integrating Jit.js (InfoVis Toolkit) with ZK is what you need.

In my answer i provide a complete demo using the InfoVis javascript library but the technique is still the same. The server sends the data back to the client as a json formatted string.

Hope that helps

Costas

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: 2015-02-04 04:29:51 +0800

Seen: 52 times

Last updated: May 27 '18

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