Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #401003 Score: 0
    Profile photo of Math Notermans
    Math Notermans
    Member
    contributor
    intermediate
    advanced
    friend finder
    junior moderator
    advocate
    LUC16 Attendee
    LUC16
    wise owl
    curious george
    117 pts
    @mnotermans5114

    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..
    <script src=”https://code.jquery.com/jquery-1.12.4.js”></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,

    Math

    #401006 Score: 1
    Profile photo of Joe Wieloch
    Joe Wieloch
    Moderator
    beginner
    intermediate
    friend finder
    contributor
    LUC16 Attendee
    verified member
    wise owl
    LUC17 Attendee
    advanced
    picture perfect
    51 pts
    @wheels

    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.