Hi,
I developed an application in JSPs and Servlets involving drop down menus that kept growing with how many authors per publication their were. This was done in Javascript and then in my application iterated through them using a loop. Is this possible using django? As this would be useful in my application?
Thanks in Advance,
Dean
views:
23answers:
1
+1
A:
This link might help you out if you don't want to dive into javascript (too much)
Or have a look at this stackoverflow question/awnser:
http://stackoverflow.com/questions/511843/what-is-the-best-ajax-library-for-django
In any case, you need to serialize your array to a JSON string. Then pass the JSON with an XMLHTTPRequest (ajax) to the server.
Add the javascript tag to your question if you don't mind more JS solutions. Otherwise look for a Django Ajax framework to do the heavy lifting for you.
BGerrissen
2010-08-14 11:27:31