Re: model array to javascript

2011-01-24 Thread Patrick McDonnell
I would recommend first converting it to an intermediary format, such as JSON or XML, as described here: http://docs.djangoproject.com/en/1.2/topics/serialization/ You can then use JavaScript to easily manipulate it in whatever way you want. This is basically the approach I take when doing AJAXy

model array to javascript

2011-01-24 Thread nicolas lubkov
hello all i was wandering if its possible to pass a model.objects.filter() array like ¨Category¨ and ¨ Sub-category ¨ to JavaScript. this is meant to be used in a JavaScript function to fill a Combo-box Sub-category by changing the Combo-box ¨¨Category¨ -- Saludos. Nicolas Lubkov Ing. Informati