Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #401003 Score: 0
    Profile photo of Math Notermans
    Math Notermans
    friend finder
    junior moderator
    LUC16 Attendee
    wise owl
    curious george
    124 pts

    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 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..
    <script src=””></script>

    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 ??

    Kind regards,


    #401006 Score: 1
    Profile photo of Joe Wieloch
    Joe Wieloch
    friend finder
    LUC16 Attendee
    verified member
    wise owl
    LUC17 Attendee
    picture perfect
    58 pts

    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!


    This post has received 1 vote up.
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.