Topic: full screen and overlay issues

Greetings,

I'm having full screen and overlay issues with an embedded gallery:
<http://www.studiosaid.com/g_liquidlight/liquid-03.html>


a) full screen mode is almost opaque in Safari v5.1.10 Mac.  Works well in Firefox v31 and Chrome v36. Haven't checked on Windows yet. This happened locally after publishing ("View in Browser" - Safari default) and also live. This behavior was not happening in v1.4.0


b) Can you advise how I might place a logo in the full screen mode, upper left? I'd like to retain branding between normal and full screen modes.


c) I've configured Image Overlay "Auto" and to NOT show overlay on load (unchecked). Yet the overlay still appears on load. Am I missing a contingency here?


Much Obliged,
-Said

Re: full screen and overlay issues

(a) Use the expandedBackgroundColor configuration option (in JuiceboxBuidler-Pro's 'Customize -> Color' section) to set the background color for expanded mode. The problem you report is likely to be due to different browsers having different default colors for the fullscreen background (black vs white) and setting an expandedBackgroundColor with an opacity of 1 (fully opaque, no transparency) should hopefully solve your problem.

(b) Please see the Adding a Logo support section for suggestions.
In order for the logo to appear in fullscreen mode, Option #2 or #3 should be suitable.

(c) You have set showInfoButton="TRUE". This overrides the default behavior of the overlay. (This is noted in the description of the showInfoButton configuration option in the Button Bar Options section of the Config Options page.)
The overlay will be displayed on load and can be toggled on and off via the Info Button on the Button Bar.

Re: full screen and overlay issues

Thx Steven,

Your suggestion for expandedBackgroundColor did not work. I tinkered with different colors and opacities but nothing altered the hiding of all images in full screen mode with Safari. Again, this behavior is new for me in v1.4.2 so I do not think it owes to a browser default.

I'll happily try your logo suggestions.

Too bad there's no option to retain the toggle but start with the overlay off. I'd rather viewers see an unobstructed view of the images first.

Best Wishes,
-Saïd

Re: full screen and overlay issues

a) full screen mode is almost opaque in Safari v5.1.10 Mac.

I tinkered with different colors and opacities but nothing altered the hiding of all images in full screen mode with Safari.

Perhaps I am misunderstanding your problem. I am not sure what you mean by "nothing altered the hiding of all images in full screen mode".
I have expanded your gallery in Chrome, Firefox, Internet Explorer and Safari on my PC and the expanded gallery looks similar in all browsers.
Could you please upload screenshots somewhere (and provide links) of the gallery's fulscreen display in Safari and in other browsers so that I can see what you are seeing? Thank you.
It might also be worthwhile clearing your browser's cache before reloading your gallery's web page to ensure that your browser is fetching and using the most recent versions of your gallery files.

Too bad there's no option to retain the toggle but start with the overlay off. I'd rather viewers see an unobstructed view of the images first.

If you would like to make any suggestions for future versions of Juicebox-Pro, then please post them in the Feature Requests thread. This keeps them all together and ensures that they are not overlooked. Thank you.

Re: full screen and overlay issues

Good Morning Steven,

Please find four screenshots here: <http://www.studiosaid.com//Pickup/4Steven.zip>

The two Safai views show the strange behavior, both before and after clearing the cache.

Safari1.png is a screenshot the first time I go into fullscreen mode. I trust you can see the juicebox gallery barely, obscured by a high opacity veil, seemingly in my background color: #f2f0f0. The gallery responds to my mouse-clicks: the shadow of images sliding is apparent although no detail  manifests.

But when I close out of fullscreen mode and then re-enter it, all suggestion of the juicebox gallery disappears: Safari2.png


I'm delighted all is working as expected for you on PC.  On my Mac, Safari v5.1.10 (OS 10.6.8) is giving this grief.

Thanks for your help,
-Saïd

PS(Thank too for the Feature Request link. I will post the suggestion regarding the frustrating overlay display behavior.)

Re: full screen and overlay issues

Thank you for providing the screenshots. I notice that not only is there a problem with the opacity but there are also elements from your web page (logo and menu) which are visible in the expanded gallery which should not be there.

There is currently a known bug whereby elements which have explicitly been assigned a CSS position are not covered by the fullscreen gallery (they should be). This bug should hopefully be fixed in a future version of Juicebox.
It sounds like this might be the cause of your problem as your CSS files do set CSS positions to elements on your web page.
However, your problem also seems to be isolated to your version of Safari (5.1.10) as I do not see the problem in any browser on my PC.

Until the bug is fixed (which should hopefully solve your problem), it might be wise to set expandInNewPage="TRUE" in (in JuiceboxBuilder-Pro's 'Customize -> General' section) so that when the gallery is expanded, it will be displayed on a new page of its own rather than on top of the embedding page.

Setting expandInNewPage="TRUE" will override useFullscreenExpand="TRUE" but it should result in a fully functional gallery and should hopefully be a suitable solution to your problem until the bug is fixed.

Re: full screen and overlay issues

Thank you Steven for the explanation of the CSS positioning bug.

I tried your suggestion on setting expandInNewPage="TRUE", but this leads to more bizarre behavior in Safari. The resulting gallery fails to open in full screen mode, giving the error :"Juicebox Error: Config XML file not found."  When I turn off the "Show Info Button" per your suggestion, the caption overlay now appears "left" even though the configuration is set to "center", again in Safari.

I think my best course is to eliminate the full screen option altogether until the kinks get worked out. That's too bad because it (sometimes) provides a great user experience. But I tried options #2 or #3 as well as using the Back Button for Adding a Logo and none work for me. Essentially, I need to have an option to place a logo JUST on the full screen page, not to have the same logo appear on both regular and full screen pages. Why? Because I need a navigation bar on the former but not the latter. The way these options are currently configured, if I customize for one, it messes up the other. It looks like it may be possible to customize the <full.html> file and have that fulfill my needs… we'll see. I'll keep exprimenting and look forward to the bug fixes.

In the meantime, I will submit Feature Requests for both Full Screen customization options as well as for the showInfoButton behavior.

Thank you again for your prompt and constructive support for this fabulous product.
-Saïd

Re: full screen and overlay issues

It sounds like you are experiencing a lot of problems with Juicebox-Pro in your Safari browser.
We have not had any other users experience so many problems with v1.4.2 in any one specific browser so it sounds like your particular version of Safari (v5.1.10) may be at the root of many of your issues.

The resulting gallery fails to open in full screen mode, giving the error :"Juicebox Error: Config XML file not found."

This should not happen unless the 'full.html' page is not in the correct location or has been renamed.
Have you tried completely clearing your browser's cache before reloading your gallery to see if this helps?

When I turn off the "Show Info Button" per your suggestion, the caption overlay now appears "left" even though the configuration is set to "center", again in Safari.

This sounds like you may have a conflict with some CSS code on your web page. (Check your CSS files for any generalized CSS code that the gallery might be inheriting.) However, if this was true, then I would expect the issue to be seen in all browsers (not just Safari v5.1.10).

One thing I have noticed is that your web page loads the 'juicebox.js' file twice. The 'juicebox.js' file should be loaded only once per page. Try removing one of your <script src="../tools/jb/jbcore/juicebox.js"></script> entries to see if this makes a difference.

Essentially, I need to have an option to place a logo JUST on the full screen page, not to have the same logo appear on both regular and full screen pages.

You could perhaps set up the Back Button to display your logo (rather than plain text) by using HTML formatting as documented in this FAQ and then use the Juicebox-Pro API to ensure that the Back Button is displayed only when the gallery is expanded.
Here is an example:

<!--START JUICEBOX EMBED-->
<script src="jbcore/juicebox.js"></script>
<script>
var jb = new juicebox({
    containerId: 'juicebox-container',
    galleryWidth: '800',
    galleryHeight: '600',
    backButtonPosition: 'TOP',
    backButtonText: '<img src="logo.png" height="50" width="100" alt="logo" />',
    backButtonUrl: 'http://www.example.com'
});
jb.onInitComplete = function() {
    $('.jb-go-back img').hide();
};
jb.onExpand = function(expanded) {
    if (expanded) {
        $('.jb-go-back img').show();
    } else {
        $('.jb-go-back img').hide();
    }
};
</script>
<div id="juicebox-container"></div>
<!--END JUICEBOX EMBED-->

I hope this helps.

Re: full screen and overlay issues

I discovered some path problems due to bad discipline while slinging out iterations of the gallery. Bringing that under control should help.

I confess a broad lack of competence with Javascript. In the example you generously provide, I see the way you are targeting the Back Button exclusively. That's neat. With this delectable crumb, I anticipate digging a little deeper into the application of javascript.

I take it that there is no similar way in the javascript or xml to target our caption overlay on load when we've set showInfoButton="TRUE"?

You've been of immense help. I thank the powers-that-be for sharing you with us.

-Saïd

Re: full screen and overlay issues

I take it that there is no similar way in the javascript or xml to target our caption overlay on load when we've set showInfoButton="TRUE"?

This would not be as easy to achieve as my Back Button example above. It would technically be possible to track down all the CSS classes of the elements that you initially want to hide and use CSS and JavaScript to hide them but Juicebox would know nothing of this manual modification and would still think that the overlay is visible and when the user first clicks on the Info Button, Juicebox would hide the already hidden overlay (and it would look like the Info Button does not work).
The same thing happens when firing toggleOverlay() within onInitComplete() (from the Juicebox-Pro API).

Re: full screen and overlay issues

The bug I referred to above (whereby elements from the embedding web page may still be visible after a gallery has been expanded) has now been fixed in v1.4.3. Please see this blog entry for more information on the latest version.