Topic: Converting to XHTML

Hello,

I have managed to successfully embed a juicebox lite gallery into my page which opens and displays my images properly when the page is delivered as HTML5. However, I need this to work when the page is delivered as XHTML (which the page is actually written as). In this case Juicebox opens but is blank.

The JS console says the error is in the juicebox.js file (line 14):

mismatched tag. Expected: </img>.:1
SyntaxError: An invalid or illegal string was specified @ file:/juicebox_gallery/jbcore/juicebox.js:14

Is there a fix which can make the gallery compatible with XHTML?

Many thanks

Re: Converting to XHTML

A Juicebox gallery should work fine in a page using an XHTML Doctype Declaration.

Make sure that you are using the current version of Juicebox-Lite (v1.2.0).
If necessary, instructions for 'Upgrading Juicebox' can be found here.

Also, try re-uploading your gallery's 'jbcore' folder to ensure that all necessary files are present and correct in case something happened to corrupt the 'juicebox.js' file on the initial upload.

If you continue to experience difficulties, please post the URL to your web page so that I can take a look.