I am working on a production site with the following modules working:

- image cache
- cck / filefield image field etc.
- lightboxes 2

Image cache presets and lightboxes all work together fine.

I am trying to make Lightboxes2 degrade gracefully if javascript is not enabled.
In other words, if javascript is not enabled, image cache tries to load lightboxes unsuccessfully.

Ideally, I would like the image field within the node to link to the image if javascript is not enabled.

Any suggestions?

Thanks.

P.S. Have been lurking for some time. I

Comments

ratref’s picture

P.P.S.

As this is my first post, if I have been remiss in my posting methodology, please let me know

stella’s picture

Status: Active » Postponed (maintainer needs more info)

If javascript is not enabled, then lightbox2 won't work. So when the links are clicked they should either open the image itself, or the node to which it was attached. What behaviour are you encountering? and can you provide more details about your set up?

ratref’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Here is a site example to have a look: http://ratref.com/content/compound-541

I mainly work using Firefox. In Firefox, if javascript is not enabled, ligthbox seems to try to load, with no linking to the actual image.

However, I tried using Opera, and with javascript not enabled, the page and link works great, no matter the imagefield/lightbox settings. So, it looks like it's a browser issue. Or maybe just my browser ; )

Not really sure why that wouldn't work with firefox...

Thanks for the feedback.

stella’s picture

I just tried in FF and it worked fine. Don't forget you will most likely need to reload the current page after disabling javascript.

ratref’s picture

Cool. That's the trick. Understanding is complete.

Thanks again for the help.

Cablestein’s picture

Status: Closed (fixed) » Active

In FF and Opera I have had no luck degrading gracefully.

Firefox 11, Opera 11 on windows 7.