Created
September 6, 2013 11:24
-
-
Save mallim/6462555 to your computer and use it in GitHub Desktop.
How to get a string from java backend and pass it to backbone model or collection?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Within a jsp page | |
<script> | |
var options.saved_values=JSON.parse('${it.json_string_from_Java}'); | |
var theBackboneModel = new TheBackboneModel(options.saved_values,{parse:true}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment