In Lectora Online, jQuery is included in the built-in scripts from Trivantis.
Running a selector however gives me this error in Firefox.
[JS: showDebugMsg( message )] TypeError: $ is not a function
This is the selector at hand:
var debugWindow = $(“.debugTf”, getDisplayDocument());// using JQuery as selector and adding the scope
My textfield has offocurse the class, debugTf…
This is a message in the logs too:
Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user’s experience. For more help http://xhr.spec.whatwg.org/ jquery-1.10.2.min.js:6:17960
Its generated by the JQuery version implemented by Trivantis… version 1.10.2
However when i add the newest JQuery.. 1.12.4, it works fine..
So isn’t it wise to update the used version of jQuery to the latest stable one ??
Can i add newest jQuery without issues within Lectora ??
jQuery is included and we use the noConflict method so there in not a conflict with any customer included version of jQuery.
We define and use jQuery internally as triv$ and that is why $ is not a function.
Lectora Online has been live for about 10 years now! At various points we evaluated and update our platform and 3rd party scripts. Thank you for prompting us, we will look at updating jQuery in the next feature release!