Re: Serialize Data for JSON output

2010-12-20 Thread Dave Sayer
Thanks for your response, Nick. I have called the gallery_thumbs_json variable in my template and get a very comprehensive array of data, which is nice. I have then set this as a js var and then passed that to my javascript via eval(), which gives me a nicely formatted array but i can't work out

Re: Serialize Data for JSON output

2010-12-20 Thread Nick
This sounds like it is an issue with your JS for your carousel. If you are needing to get your JSON directly into your JS code then you can just make gallery_thumbs_json_s list as a variable {'caro_list': gallery_thumbs_json_s} and then just call it in your template On Dec 20, 9:16 am, Dave

Serialize Data for JSON output

2010-12-20 Thread Dave Sayer
Hi, I am working on a photo portfolio site at the moment and for the gallery side of things, I am using django-photologue to provide much of the backend muscle. It's working great so far but I really want to use an image slider/carousel to provide a nice, slick way of navigating the photos. I am