Topic: firstImageIndex option ignored [SOLVED]

I set option firstImageIndex to static value 2.

 
new juicebox({
            containerid: 'juicebox-container',
            galleryHeight: '100%',
            galleryWidth: '88%',
            configUrl: '/conf/config.xml',
            firstImageIndex: 2           
        });

But the value isn't applied. The gallery always shows first image.

Re: firstImageIndex option ignored [SOLVED]

Please post the URL to your gallery's web page so that I can see the problem for myself.
(Using the code you posted in a test gallery seems to work fine.)
It would help to see what version of Juicebox you are using, what other configuration options your gallery uses and what other code you have on your gallery's web page.
Thank you.

Re: firstImageIndex option ignored [SOLVED]

Thank you for providing the URL to your gallery's web page.
It looks like you may have copied and pasted some code from the 'jbcore/full.html' file.
Remove the following line from the top of your gallery's embedding code and your firstImageIndex should be respected.

var expanded_jb_gallery = true;

This variable is for internal use only (from within the 'full.html' file) when the gallery is expanded in a new page of its own.
For reference, the standard embedding code that should be copied and pasted into your own web pages can be found here.

Re: firstImageIndex option ignored [SOLVED]

Thanks, this the solution.

Re: firstImageIndex option ignored [SOLVED]

You're welcome. I'm glad that solved your problem.
Thank you for letting me know.