1 (edited by arachnid 2013-04-27 13:43:24)

Topic: Juicebox 1.3 and jQuery 1.9

I have found a problem with Juicebox 1.3 in respect to Jquery 1.9. It could be that Juicebox is using a deprecated function
This is the error in Opera:

Unknown thread
Uncaught exception: TypeError: 'juicebox' is not a constructor
Error thrown at line 283, column 0 in <anonymous function>(e) in file://localhost/G:/My%20Webdevelopment/my%20webs/Afrika%20Website/visit_to_madagascar_antananarivo3.htm:
    new juicebox({baseUrl: 'design4/header/madagascar/',containerId: 'box_slideshow',galleryWidth: '917px',galleryHeight: '273px',backgroundColor: 'transparent'});
called via Function.prototype.apply() from line 2, column 10160 in <anonymous function: dispatch>(e) in http://data.delosgaia.nl/resources4/jqu … .0.min.js:
    (!e.namespace_re||e.namespace_re.test(a.namespace))&&(e.handleObj=a,e.data=a.data,i=((st.event.special[a.origType]||{}).handle||a.handler).apply(o.elem,u),i!==t&&(e.result=i)===!1&&(e.preventDefault(),e.stopPropagation()));
called via Function.prototype.apply() from line 2, column 4106 in <anonymous function: y.handle>(e) in http://data.delosgaia.nl/resources4/jqu … .0.min.js:
    return st===t||e&&st.event.triggered===e.type?t:st.event.dispatch.apply(s.elem,arguments)

A workaround is to use the jQuery build of Juicebox. I don't know which one this is.
See http://afrika.delosgaia.nl/visit_to_mad … arivo2.htm for a page build in this way and without the error.
See http://afrika.delosgaia.nl/visit_to_mad … arivo3.htm for a page using jQuery 1.9, please check it with F12 in IE or firebug in Firefox
I have not tried the jQuery Migrate Plugin but it is possible that this plugin will also solve the problem.

The two named pages shall be removed within the next days.

Re: Juicebox 1.3 and jQuery 1.9

Thank you for reporting. I have logged a bug report.

Re: Juicebox 1.3 and jQuery 1.9

I have to use the jQuery Migrate plugin in combination with jQuery 1.9, my menu is jQuery based and not working at supposed to be with the jQuery of JuiceBox Pro.
See https://github.com/jquery/jquery-migrate/#readme for more information about the migrate plugin. I sincerely hope that this is fixed a soon as possible.

Re: Juicebox 1.3 and jQuery 1.9

We aim to release a fix for this bug as soon as possible but, in the meantime, try loading the 'jquery-1.9.1.min.js' file after the 'juicebox.js' file on your web page. I cannot be certain that your jQuery functions will work as expected but my tests show that the gallery should display OK.

Re: Juicebox 1.3 and jQuery 1.9

This bug has now been fixed in v1.3.1. Please see the Version History for a full list of changes and the Upgrading Juicebox page for details on how to get the latest version.

Re: Juicebox 1.3 and jQuery 1.9

Great, I love this

Re: Juicebox 1.3 and jQuery 1.9

It 1.3.1 is working fine.

Do you support IE7/8 with Juicebox. jQuery 2.0 doesn't

Re: Juicebox 1.3 and jQuery 1.9

Do you support IE7/8 with Juicebox.

Yes.