03-31-2014 01:34 AM
saw that jabber sdk is using 1.4.2.
I'm trying to use another library in conjunction with jabber sdk, and this requires minimum jquery version 1.6.2.
I tried loading jquery 2.1.0, but fails with lots of exceptions. is there a way to overcome this?
Solved! Go to Solution.
04-02-2014 08:31 AM
Have you tried include your own jQuery prior to any Jabber SDK API?
ciscobase contains its own copy of jQuery, globally available as window.ciscobase.$. The 9.2 SDK ciscobase includes jQuery 1.4.2
At the time ciscobase.js is loaded, the global jQuery window.$ is set to window.ciscobase.$
you can include your own jQuery prior to loading ciscobase.js as below to use your own version of Jquery
<script type="text/javascript" src="//code.jquery.com/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="../src/ciscobase.js"></script>
You can check what version is currently running via browser console by running
window.ciscobase.$.fn.jquery
->“1.4.2"
and
window.$.fn.jquery
->“1.11.0"
Hope this help,
Howard
04-02-2014 05:05 AM
Hi Lim,
Cisco Jabber SDK is implemented as a jQuery plug-in. This means that jQuery is a prerequisite for using the API. ciscobase.js provides jQuery 1.4.2 by default, but does not conflict with any other versions of jQuery you may already have loaded.
Can you try jQuery 1.11.0
jQuery 2.x has the same API as jQuery 1.x, but does not support Internet Explorer 6, 7, or 8.
Thanks and Regards,
Geevarghese
04-02-2014 08:31 AM
Have you tried include your own jQuery prior to any Jabber SDK API?
ciscobase contains its own copy of jQuery, globally available as window.ciscobase.$. The 9.2 SDK ciscobase includes jQuery 1.4.2
At the time ciscobase.js is loaded, the global jQuery window.$ is set to window.ciscobase.$
you can include your own jQuery prior to loading ciscobase.js as below to use your own version of Jquery
<script type="text/javascript" src="//code.jquery.com/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="../src/ciscobase.js"></script>
You can check what version is currently running via browser console by running
window.ciscobase.$.fn.jquery
->“1.4.2"
and
window.$.fn.jquery
->“1.11.0"
Hope this help,
Howard
04-02-2014 07:50 PM
Hi,
i just checked, seems like jabber sdk must be loaded in an IE8 environment, looking from the jabber sdk sample
<meta http-equiv="X-UA-Compatible" content="IE=8,chrome=1">
when i changed IE=8 to IE=edge, jabber fails to register.
Jquery 2.x does not support IE8 and below, thus can i conclude that jquery 2.x will not work with jabber sdk?
04-08-2014 02:30 PM
Hi, Soonhock Lim,
In MR5 that tag is indeed - <meta http-equiv="X-UA-Compatible" content="IE=8,chrome=1">
In MR6, it is <meta http-equiv="X-UA-Compatible" content="IE=edge" />
MR5 supported up to IE10 and in MR6 IE11 support was added.
-Vibhavaree
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide