View Single Post
Old 08-28-2011, 02:25 PM   #3
DezmondFinney
Member
DezmondFinney began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Aug 2011
Location: Atlanta, Ga
Device: kindle
Right now the server seems to use the application/json to serve html snippets. I use an ajax call to one of the json endpoints to get back a string of <li>s to persist the menu in a side bar. This video shows what I did http://vimeo.com/28268644. (Btw there is alot that is not done in the vid including elements I have hidden like the donate button, opds link etc.)

I would prefer a json object that I can use to create any type of html element I'd like client side. Libraries like backbone.js expect json objects to persist and manipulate client side. So do template systems like handlebars.js

If there is a function that does just that I have not seen it but like I said before reading python is hard for me cause I don't know the language. I suppose I can replace the html with a properly formatted json string and that is what I am thinking I will do.
DezmondFinney is offline   Reply With Quote