Rolf -nl
unread,Apr 10, 2009, 5:39:23 AM4/10/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to MooTools Users
Hello group,
I think I'm missing something (maybe because today is a friday).
In a text file I have a shirt JSON list of let's say products:
{
"products": [
{
"id": 0,
"name": "Product name 1",
"manufacturer": "Just a manufacturer",
"text": {
"descriptionShort": "Bla about product 1.",
"descriptionLong": "Just a little more bla bla for product 1."
},
"images": [
{"src": "product1-image1.jpg"},
{"src": "product1-image2.jpg"},
{"src": "product1-image3.jpg"}
]
},
{
"id": 1,
"name": "Product name 2",
"manufacturer": "Another manufacturer",
"text": {
"descriptionShort": "Bla about product 2.",
"descriptionLong": "Just a little more bla bla for product 2."
},
"images": [
{"src": "product2-image1.jpg"},
{"src": "product2-image2.jpg"}
]
}
]
}
Now I want to shuffle/randomize this after loading so the page shows a
different thumbnail grid everytime.
Can't seem to find out how to do that. Maybe the JSON is incorrect?
Byebye,
Rolf