Updating to latest jQuery

241 views
Skip to first unread message

John S

unread,
Oct 11, 2013, 2:54:47 PM10/11/13
to camera-s...@googlegroups.com
Hi,

I just found Camera and love it... but I'm wondering if there's any chance/hope that it will be updated to support the latest version of jQuery instead of relying on pre-version-1.9 jQuery?  I have a site I'd love to use it on, but there are other plugins I'm using that require more recent versions of jQuery so they aren't compatible.

Thanks!

 - John

REVEL ATION

unread,
Oct 13, 2013, 2:09:44 AM10/13/13
to camera-s...@googlegroups.com
Hi,

You can do this update by yourself just by replacing the .live() method by the .on() method in the source code. At least it's enough for a basic use (I don't have an extensive enough use to be sure that make the library 100% compatible with jQuery 1.10).

John S

unread,
Oct 13, 2013, 2:16:36 PM10/13/13
to camera-s...@googlegroups.com
Hi,

Thanks for the suggestion.  I'll give this a try... but I think when I first tested using Camera out with jQuery v1.10.2, the Console in Firebug was reporting that there was a problem with the .Browser function not being defined... so would the switch from .live() to .on() correct that?  Or was .Browser a separate function that has been deprecated?

Thanks.

REVEL ATION

unread,
Oct 14, 2013, 12:26:48 AM10/14/13
to camera-s...@googlegroups.com
Hi,

Finally I've found the browser property call in the source code. It doesn't affect my app because I don't use the loader. You're right, this property has been removed in 1.9, but according to jquery site it is still available through the jQuery.migrate plugin. You can also use an helper library (http://learn.jquery.com/code-organization/feature-browser-detection/)

John S

unread,
Oct 14, 2013, 1:09:49 PM10/14/13
to camera-s...@googlegroups.com
Thanks for doing that!  I'll have to take a look at the jQuery.migrate plugin and see if it will work for this application.  Looks like it should!  I really appreciate the help!

 - John

ALOK SHARMA

unread,
Oct 14, 2013, 2:19:13 PM10/14/13
to camera-s...@googlegroups.com
guys if someone of you upgrade camera, can you put it on drop or github that be great


--
Hai ricevuto questo messaggio perché sei iscritto al gruppo "Camera slideshow" di Google Gruppi.
Per annullare l'iscrizione a questo gruppo e non ricevere più i suoi messaggi, invia un'email a camera-slidesh...@googlegroups.com.
Per ulteriori opzioni, visita https://groups.google.com/groups/opt_out.



--
Alok Sharma
Skype id:- aloksharma2k27

Jordi Ramirez

unread,
Oct 20, 2013, 6:38:13 AM10/20/13
to camera-s...@googlegroups.com
Hi everybody!

To use Camera with jQuery 1.10.2 you need to do this:

1. Replace "live.(" with "on.(" (There are 4)
2. And replace:

if(opts.loader=='pie' && $.browser.msie && $.browser.version < 9){
loader = 'bar';
} else {
loader = opts.loader;
}

with
loader = opts.loader;

Deleting this lines, the application can't check if you're browsing with an old browser.
Because this, in line 36, I reccomend to put loader variable in 'bar' because if you put 'pie' some old browsers won't display the slideshow.

I hope you have understood me.

Enjoy it!

El dilluns 14 d’octubre de 2013 20:19:13 UTC+2, Mr_Bunta va escriure:
Reply all
Reply to author
Forward
0 new messages