You can use basic Json, but this is basic javascript, not specific for
prototype
{
cars: [
{
make: 'some make name',
models: [
{ name: 'model 1' },
{ name: 'model 2' }
]
},
{
make: 'some other make name',
models: [
{ name: 'model 3' },
{ name: 'model 4' }
]
},
]
}
Something like this?
Greets,
Johan
On Fri, Jun 3, 2011 at 9:31 PM, Phil Petree <[email protected]> wrote:
> Hey All!
>
> I'm biting the bullet and trying to break away from XML and go to json.
>
> I using Ajax.Updater to call cities.php which looks up the available cities
> for a given zip code (yes there can be more than one city - my zip has 4
> possibilities!) and return those in a <select>
>
> How do these need to be returned/formatted in php?
>
> Can anyone point me to one of the car/make/model examples? I can't find
> one for prototype...
>
> Thanks,
>
> Pete
>
>
>
> --
> 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.
>
--
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.