jQuery 1.5.1 compatibility]]>https://www.simpleviewer.net/forum/viewtopic.php?id=12362
jQuery 1.5.1 compatibility.]]>Wed, 04 May 2011 17:56:47 +0000PunBB jQuery 1.5.1 compatibility]]>https://www.simpleviewer.net/forum/viewtopic.php?pid=35476#p35476
Hi,sv2.1.3 is working well with jquery1.5.1 :) (Thank you sv guys!)...but maybe I have some other compatibility issue with some other jquery plugin/script in my website...I get the same error unless I "run" the embed code with a timeout...

In my website, I include statically jquery, plugins and simpleviewer.js. Then, dinamically I append the div#sv-container to the body and then eval the code above. Maybe there is some delay before the div#sv-container is attached to the body and the embed script have some problem...

If I load simpleviewer.js AFTER jquery1.5.1, it seems that jquery1.4.4 ("packed" in simpleviewer.js) replace jquery1.5.1. In this case my plugins and scripts designed for jquery1.5.1 are not working.

If I load simpleviewer.js BEFORE jquery1.5.1, it seems all OK: jquery1.5.1 replace jquery1.4.4, and simpleviewer.js is loaded without errors. In this case when I load the gallery (in the "standad" way: using the js global object SV) I get the error "b.toLowerCase is not a function"...

When simpleviewer.js is loaded, no other .js file is loaded, so simpleviewer.js may be using "his" version of jquery (and using $.noConflict()?).

Since simpleviewer.js is "packed", I don't know how to investigate about the "b.toLowerCase is not a function" error...

I'm trying to understand the issue but I got a little confused. What exactly are you trying to do, and what exactly does not work?

thanks.

]]>Fri, 15 Apr 2011 21:47:22 +0000https://www.simpleviewer.net/forum/viewtopic.php?pid=34990#p34990 jQuery 1.5.1 compatibility]]>https://www.simpleviewer.net/forum/viewtopic.php?pid=34977#p34977
Hi,I've tried loading SimpleViewer.js before jQuery1.5.1.When loading, all is ok: no error in simpleviewer.js and, after loading jquery1.5.1, "jQuery().jquery" says "1.5.1" so my plugins and my scripts (loaded after jquery1.5.1) are working with the desired version of jquery (1.5.1).

Since SimpleViewer uses jQuery.noConflict() to "store" jquery 1.4.4 in a private js variable, I think this is the situation now:- SimpleViewer will use his jQuery 1.4.4 stored somewhere whithout interferencing with jQuery1.5.1- Other plugins and scripts will refer to jQuery1.5.1 using the "jQuery" or "$" variable.

A little more intricated example : http://www.andreafailli.it/alfa/gallo/? … =lampadariIn this example, I load: simpleviewer.js, jquery1.5.1, other plugins/scripts that uses jquery1.5.1. Then the sv-containerDIV and the SV loading script are retrieved via AJAX and inserted into the page.I get "b.toLowerCase is not a function" error.

Temporary Fix example : http://www.gallosnc.it/?p=slideshow&g=lampadariIn this example (the real site), I load: jquery1.5.1, other plugins/scripts that uses jquery1.5.1, swfobject.js. Then (via AJAX) i load the gallery using swfobject (loosing the Universal player and the js API features).It works fine.

I'm looking forward to hear from you as soon as possible...thank you!!

Using noConflict() I may insert jquery1.4.4 in a js variable, let's say "jQuery144"...then simpleviewer.js have to use that variable, NOT "$" or "jQuery"!

Why don't you do this the other way around and load 1.5.1 into a var instead of 1.4.4?

It is possible to have a version (even packed) of simpleviewer.js (in the above example: simpleviewer_ jQuery144.js) that does not use "$" or "jQuery" but that uses the noConflict variable jQuery144?

SimpleViewer already uses jQuery.noConflict(); and does not use $ to reference jquery.

Approximatly, when will be released a version of sv compatible with jquery 1.5.*?

SimpleViewer 2.1.3 is in the works, but I'm not sure if it will support jquery 1.5.1.

]]>Mon, 21 Mar 2011 17:25:43 +0000https://www.simpleviewer.net/forum/viewtopic.php?pid=34335#p34335 jQuery 1.5.1 compatibility]]>https://www.simpleviewer.net/forum/viewtopic.php?pid=34328#p34328
Using noConflict() I may insert jquery1.4.4 in a js variable, let's say "jQuery144"...then simpleviewer.js have to use that variable, NOT "$" or "jQuery"!

It is possible to have a version (even packed) of simpleviewer.js (in the above example: simpleviewer_ jQuery144.js) that does not use "$" or "jQuery" but that uses the noConflict variable jQuery144?

Approximatly, when will be released a version of sv compatible with jquery 1.5.*?

Best Regards. Andrea

]]>Mon, 21 Mar 2011 16:27:02 +0000https://www.simpleviewer.net/forum/viewtopic.php?pid=34328#p34328 jQuery 1.5.1 compatibility]]>https://www.simpleviewer.net/forum/viewtopic.php?pid=34324#p34324
Ok, haven't tried the new version of jquery with SimpleViewer yet. Until a new version of SimpleViewer is released that supports 1.5.1 you will have to try using the jquery no conflict or something like jQuery-Quarantine

]]>Mon, 21 Mar 2011 15:43:27 +0000https://www.simpleviewer.net/forum/viewtopic.php?pid=34324#p34324 jQuery 1.5.1 compatibility]]>https://www.simpleviewer.net/forum/viewtopic.php?pid=34323#p34323
I've tried to include jquery1.5.1.js after simpleviewer.js: the jquery loads succesfully (v1.5.1) but I get this error in simpleviewer.js:

b.toLowerCase is not a function
eval(function(p,a,c,k,e,r){e=function(...|touchstart|minimum'.split('|'),0,{}))

But since simpleviewer.js is "packed" I can't even try to get rid of this error.

I've made another try renaming jquery1.5.1.js into jquery-1.4.4.min.js in the svcore folder... I get a lot of

$ is not a function

It would be great if you can provide a version of simpleviewer.js without (or that will not brake) jQuery 1.5.1.

I have a lot of plugin based on jquery 1.5.1 that will not work with jquery 1.4.4.

Have you tried placing the jquery-1.5.1.js after the simplevewer.js instead of before. The other option is to open the svcore/js folder and replace the jquery-1.4.4.min.js with the jquery-1.5.1.js, for this to work you would have to rename jquery-1.5.1.js to jquery-1.4.4.min.js.