cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
578
Views
0
Helpful
2
Replies

Jabber SDK Voice & Video Version 11.0.1 for Web - Question on ciscobase.js

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

https://developer.cisco.com/site/jabber-websdk/develop-and-test/voice-and-video/downloads-and-docs/release-notes-11-0-1/

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

2 Replies 2

npetrele
Cisco Employee
Cisco Employee

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;

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.