scala - how to get Table sent by scalate ssp in a javascript function -
i work framework scalatra , declare array in manner page .ssp
<% @ val table_activity: array [string]%>
usually if want extract info middle of page .ssp :
<% ( x <- 0 table_activity.length-1) { %> <tr> <td> <%=table_activity(x) %> </td> </tr> <% } %>
but in case want manage info in javascript function , have no thought how it!! if have thought please help me
depending on utilize case serialize info json , access javascript code. if have never done before, there several libraries available scala: http://engineering.ooyala.com/blog/comparing-scala-json-libraries
javascript scala scalate ssp scalatra-sbt
No comments:
Post a Comment