06-16-2016 02:21 PM
Hi! I'm trying to use the Voice & Video SDK in our web application and I'm having a problem including the ciscobase.js.
My theory is that it's conflicting with the jquery-2.1.3 that we are using.
As stated in the realease notes
the ciscobase.js is basically jquery-1.4.2. So, I thought I could probably not use it and just use the version of jquery we are using.
To test this, I used the sample.html provided with the SDK.
All seems to be ok - I'm able to login with my credentials for the Sandbox I reserved, until the time it calls the callback function returned by the handleDevicesAvailable. For some reason the callback is returning an error of "Invalid arguments".
Any ideas on what's happening?
Is ciscobase.js cannot be replaced?
Thanks,
Russel
06-17-2016 08:54 AM
I don't think the code in ciscobase.js is literally the same as jQuery 1.4.2 with no modifications, but even if it is, you'd want to include this portion of code that doesn't exist in jQuery 1.4.2. Look for it at the end of ciscobase.js.
/** * * Ciscobase utilities */ // reset jQuery and $ if not present var ciscobase = {}; ciscobase.$ = jQuery.noConflict(true); if (typeof(window.jQuery) == "undefined") { window.jQuery = ciscobase.$; } if (typeof(window.$) == "undefined") { window.$ = ciscobase.$; } window.ciscobase = ciscobase;
06-17-2016 02:53 PM
Hi Nicholas!
Thanks for the reply! You're right, I actually had the previous version of the ciscobase.js that's why I didn't see the codes you mentioned.
I figured out what's going on when I do not include ciscobase.js and use jquery-2.1.3. The problem was when using the newer jquery version the $('sdforcereg').attr('checked') returns 'checked' instead of true. The code is in showInitialSignInView() function.
That ticks off the callback function returned by the handleDevicesAvailable.
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