Hi there,

I've successfully managed to make an ajax call, created the code to
display the greybox images and update a div from the page calling the
script. My problem is when I try to use the showImageSet and
dynamically build the image_set var in my php page. It shows a gallery
of 4 images which is right, but no actual images display. I get the
image paths and file names from a mysql db.

Here's my code

        $image_set  = "[{'caption': 'Image 1', 'url': '".images/projects/
$project->project_folder/$project->image1."'},";
        $image_set .= " {'caption': 'Image 2', 'url': '".images/projects/
$project->project_folder/$project->image2."'},";
        $image_set .= " {'caption': 'Image 3', 'url': '".images/projects/
$project->project_folder/$project->image3."'},";
        $image_set .= " {'caption': 'Image 4', 'url': '".images/projects/
$project->project_folder/$project->image4."'}]";

        $html .= "<a href=\"images/projects/$project->project_folder/$project-
>image1\" onclick=\"return GB_showImageSet($image_set, 1)\">Click me</
a>";

        echo $html;

Thanx for help in advance
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"GreyBox" 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/greybox?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to