imageDesc onclick change help

I'm trying to set up my page where when you click on the thumbnail, the full image appears above, as well as the image description. I managed to get the image part to work fine using javascript, but for some reason, <?php printImageDesc ?> never seems to work, even for the default refresh of the page, which starts with the album thumbnail loaded full-sized. I'm quite new to PHP so forgive me if it's a simple fix.

You can view the page in question here: http://halkatzengallery.com/zenphoto/vija-celmins

Comments

  • acrylian Administrator, Developer
    Well, that function requires the context of the image it belongs to. The global image object `$_zp_current_image` for that image needs to be setup. Just getting images from the cache bypasses all that and leads to possible problems if the imaeg is not cached at all.

    In short this way it won't work.
  • Hm, I had a friend look it over & set it up. You can go back to the site to test it out. I'm on a deadline for the site's release, but I'll post an explanation of the code in a few days if it seems like something new/interesting to others. Perhaps I didn't explain what I wanted proper...
Sign In or Register to comment.