简体   繁体   中英

Interaction in playframework

I'm new to Playframework, and get a question: When people search something, the result is rendered in some chart generated by google visualization. When people selected some point on the chart, I got the row# and col#. I need to get these two data to backend, fetch some data using this row# and col# and render the data in a new chart. Any idea on how to route this process?

you should use jquery.ajax() and jsRoutes to call your backend. then, you should add a new function in the "complete" tag option of ajax method ( http://api.jquery.com/jQuery.ajax/ ) that will render your new chart.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM