Topic: Error: 'juicebox' is undefined [SOLVED]

Receiving this error message” Error: 'juicebox' is undefined” when passing a query string to an .aspx web page. Not passing a query string is not an issue.

Query string example: http://www.xxxxx.com/asp/xxxxxGallery.aspx/?token=12345

Appreciate your feedback.

Thank you.

Re: Error: 'juicebox' is undefined [SOLVED]

Ordinarily, there should be no problem using a query string in a page which has a Juicebox gallery embedded in it.
Try loading the 'Juicebox-Pro Embedded Example' gallery using the same query string as in your example.
http://juicebox.net/demos/pro/embedded/?token=12345
Obviously, there is no code on the web page to handle the query string but the gallery loads fine.
Please post the URL to your web page so that I can take a look at the problem for myself and hopefully help further.
Thank you.

Re: Error: 'juicebox' is undefined [SOLVED]

To be more specific, the error message only occurs in Visual Studio 2013.

Works just fine - http://www.masurefire.com/asp/DanubeGallery.aspx

Empty/blank screen - http://www.masurefire.com/asp/DanubeGal … ken=711712

Using IE 11 and Chrome.

Empty/blank screen - http://www.masurefire.com/asp/DanubeGallery.aspx/

Code behind, also tried commenting code.

protected void Page_Load(object sender, EventArgs e)
    {
        string token = "";
        Response.Write(Request.QueryString);
        token = Request.QueryString["token"];
         
    }

Re: Error: 'juicebox' is undefined [SOLVED]

It looks like the problem might simply be that you have a slash after your page name (denoting a directory).
Your gallery displays fine when using the following URLs:
http://www.masurefire.com/asp/DanubeGallery.aspx?token=711712
http://www.masurefire.com/asp/DanubeGallery.aspx

As soon as you put a slash after 'DanubeGallery.aspx', 'DanubeGallery.aspx' is seen as a directory rather than a file.

My own example above worked as the full URL would have been:
http://juicebox.net/demos/pro/embedded/index.html?token=12345
(The gallery is embedded into the 'index.html' file within the 'embedded' directory. I omitted the 'index.html' file from the URL but the file was still being displayed.)
If your URL points towards a directory (ending in a slash), then most web servers are set up to display a file by default (whose name is usually 'index.html') without explicitly using 'index.html' in the URL.

Re: Error: 'juicebox' is undefined [SOLVED]

It’s difficult to believe that I could not figure this out myself. Wow.

Many thanks for taking the time to get me back on track.

Re: Error: 'juicebox' is undefined [SOLVED]

You're welcome.
I'm glad I was able to help.