Support

Modules

News

Support Forums
Subject: Compatibility with Lightbox & Postback Tab Order
Prev Next
You are not authorized to post a reply.

Author Messages
compass
Posts:6

08/19/2008 7:37 AM  

Hi, I am trying to use lightbox from within DigRotate, but unfortunately images only open correctly within the lightbox window when they are opened from the initial DigRotate tab -- if you change tabs within DigRotate and then click an image, the image is not displayed within the lightbox window. All images display as expected when they are not in the DigRotate module. I think this is to do with the way the pages are loaded and displayed from within DigRotate (ajax/javascript etc.). Does anyone know of any workarounds for this?

The only way I can get the images to open as expected is to use 'Postback', but unfortunately when a particular tab is clicked, the page is reloaded with a different tab being selected. Do you know if there is a fix for this?

Any help/suggestions will be gratefully appreciated.

Thanks,
Matt

digmike
Posts:275

08/19/2008 8:01 AM  
Hi Matt,
Many lightbox scripts initialize when the page is loaded, and scans the pages for images that need to be lightbox enabled. Using AJAX means the image isn't there when the lightbox initializes itself. Did you try "Send All Content" instead of AJAX?
Thanks,
Mike

compass
Posts:6

08/20/2008 4:40 AM  

Hi Mike,

Thanks for getting back to me. Yes I have tried "Send All Content" and unfortunately it's exactly the same; works on the initial tab that gets loaded the first time you enter the page, but then doesn't work on any subsequent tabs. I don't understand it as when I look through the html produced when the pages are viewed, all the content is there for each of the tabs and everything looks fine. Any ideas of anything else I can try - it's driving me nuts!

Cheers,
Matt

digmike
Posts:275

08/20/2008 5:58 AM  
Hi Matt,
Can you post a link, or email it to us through Contact Us.
Thanks,
Mike

compass
Posts:6

08/20/2008 8:14 AM  

Many thanks Mike, I really appreciate you having a look.

I have created a test page on our live site here: http://www.compasscc.com/test01/tabid/365/Default.aspx. It is currently set to "Send ALL content to browser", and using the lighbox dnn module, however I get the same result if I put the necessary lightbox javascript in the page's skin .ascx file; I have also tried using Greybox & Lytebox, with the same result (i think they all originated from the same javascript files anyway). They all work on the first tab, but then when you change to the second tab, they longer work.

If I can get this to work, I would like to use the module on every product page on our website to display product information divided into a number of tabs, but if I can't, i'm back to square one, and will end up having to craete loads of separate pages with the info on.

Again, many thanks for taking a look!
Regards,
Matt

digmike
Posts:275

08/20/2008 8:50 AM  
Hi Matt,
The problem is that when digRotate copies the content from the data div to the animation div, the onclick assignment from LightBox can't copy over. This is something we are going to change in the next major release, it requires giving the DHTML rotator an overhaul. You might want to try assigning an onclick event to the tag. Try:
onclick='myLightbox.start(this); return false;' If that doesn't do it, I'll look for another solution. I know the lightbox we include with digScatter will work.
Thanks,
Mike

compass
Posts:6

08/20/2008 9:24 AM  

Hi Mike,

Many thanks for taking the time to have a look at the page. Can I just clarify that this is what you intended ...?

http://www.compasscc.com/Portals/0/wallpapers/preview/03.jpg" onclick="myLightbox.start(this); return false;">

If so, it unfortunately didn't resolve it.

I have made the changes to the page http://www.compasscc.com/test01/tabid/365/Default.aspx for you to see.

Thanks,
Matt

compass
Posts:6

08/29/2008 4:23 AM  

Hi Mike,

I don't suppose you have come up with any further suggestions for the above have you?

I'm still really struggling with it.

Many thanks,
Matt

digmike
Posts:275

08/29/2008 9:49 AM  

Yes, I do have a solution for you.  Download this zip and read the text file.

Thanks,

Mike


Attachment: digRotate-Facebox.zip


compass
Posts:6

09/03/2008 6:42 AM  
Mike,

That's fantastic, thank you, it worked a treat!

I really appreciate you looking into this and finding a solution - i will now be using DigRotate all over our site.

Many thanks!
Matt
You are not authorized to post a reply.
Forums > Modules > digRotate > Compatibility with Lightbox & Postback Tab Order



ActiveForums 3.7
Latest Requests Minimize
Urgent Play in Reverse Order, Sort options, Image Count Thu, 20 Nov 2008 18:12:10 GMT

video contest? Fri, 19 Sep 2008 13:08:55 GMT

user comments Fri, 19 Sep 2008 13:03:43 GMT

Hot or not style voting Thu, 03 Jul 2008 08:59:49 GMT

ability to change sort order on closed contests Fri, 30 May 2008 16:49:56 GMT

Pause on MouseOver Sun, 27 Apr 2008 10:53:00 GMT

add contest status on "open contests" page Wed, 02 Apr 2008 00:28:25 GMT

Contestant voting Wed, 26 Mar 2008 05:56:42 GMT

Previous and next links in the Entry Detail layout Sun, 23 Mar 2008 20:20:13 GMT

Lightbox support Tue, 26 Feb 2008 09:59:26 GMT

 Print