I'm a bit green with Prototype so I haven't figured out how or if I
can evaluate collections inside a JSON object for a template. Take
this for example - I have a JSON object for a driver and a collection
of his cars. Now I want to evaluate that object as an argument into a
template:

driver_template = new Template(
     'The driver, #{name}, has these vehicles: #{show the list of VINs
here}'
);

After an AJAX call I'd like to display the above text with his list of
VINs as an ordered list. I haven't been able to find any documentation
on how to handle collections so I hope someone here has done it
before. Thanks for your help :)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to