Hello,
I'm trying to show images in rows.
It works well.
But if i load the grid from an Array, the grid works well but the image doesn't appear.
I'm even trying with a static image … it dosen't show the image (i don't have any JS error).
Do Image and load from array work together ?
Thanks
Mofel
2 Answers
You can set <img> html tag in data array.
e.g.
for ($i = 0; $i < 200; $i++)
{
$data[$i]['id'] = $i+1;
$data[$i]['code'] = $name[rand(0, 4)][0].($i+5);
….
$data[$i]['more_options'] = "<a class='fancybox' href='http://upload.wikimedia.org/wikipedia/commons/4/4a/Logo_2013_Google.png'><img height=25 src='http://ssl.gstatic.com/ui/v1/icons/mail/logo_default.png'></a>";
}
Refer demos/loading/load-array.php
Your Answer