Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #385098 Score: 0
    Profile photo of approg
    approg
    Member
    beginner
    intermediate
    curious george
    wise owl
    contributor
    friend finder
    picture perfect
    21 pts
    @approg

    Perhaps you might consider updating/correcting Lectora’s JavaScript to be consistent with what’s usually expected today. For example:

    • end lines with a semi colon
    • use “[]” instead of “new Array()”
    • don’t create lines of non-minified code that are longer than about 80 characters
    • don’t use <!–  and // –> they haven’t been needed since last century.
    • don’t use document.write use something like createElement/appendChild instead
    • validate the JavaScript with lint. I like JSHint from jshint.com

    As an aside doing things like writing all HTML elements in lower case would also help debugging.

    Also still having framesets in SCORM published titles is a disappointment.

    I realise that most Lectora users don’t care about the things I’ve mentioned but they would if they realised that at least some of the flakiness they see in Lectora is caused by them.

    #398388 Score: 0
    Profile photo of Jose Parker
    Jose Parker
    Member
    beginner
    intermediate
    friend finder
    picture perfect
    curious george
    wise owl
    contributor
    @jparker1694

    I care, cause its causing havoc in chrome. is there a way to stop/disable document.write

    #398396 Score: 0
    Profile photo of approg
    approg
    Member
    beginner
    intermediate
    curious george
    wise owl
    contributor
    friend finder
    picture perfect
    21 pts
    @approg

    Don’t know. You could try adding document.write = function() { return false; }; to the top of a Lectora js file.

    I believe if you disable document.write then Lectora titles can’t run.

    • This reply was modified 10 months, 3 weeks ago by Profile photo of approg approg .
Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.