Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

SPRY WITH THICKBOX OR GREYBOX

New Here ,
Feb 22, 2008 Feb 22, 2008
I have been having problems getting Thickbox or Greybox windows to popup when I place the anchor tag containing attributes for these calls inside a spry region. It ends up opening up the image as a normal hyperlink would.

Once I move this call to either Greybox or Thickbox outside of the spry region it works fine.

Has anyone had similiar experiences? Fix?
Link to Example Practive Page
TOPICS
Extensions
1.8K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 23, 2008 Feb 23, 2008
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
May 07, 2009 May 07, 2009
LATEST

I know this is an old post now, but if it helps anyone. I had the same problem as the OP with GreyBox but reading the FAQs on the GreyBox site I found the answer.

To use GreyBox with spry you need to use the onclick= command as detailed in the advanced section in the GreyBox instructions, and not the rel= command as detailed in the basic section.

Example: To show an image inside a spry region, where the image name and image title is retrieved from a HTML dataset, this is the code you would use.

<a href="images/{ds1::img_full}" onclick="return GB_showImage('{ds1::imgTitle}', this.href)">Show Image</a>

The image name is the name the image is saved as and the image title is the title you want displayed in the GreyBox title bar.

Using the onclick= command the image will open in a GreyBox window. Using the rel= command the image will open in a normal blank HTML window.

Hope this helps.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines