Explore the community Forums Lectora Online Lectora Online Questions & Answers Lectora Online 4.2, fullscreen and Javascript…

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #399737 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
    131 pts
    @mnotermans5114

    This weekend LO 4.2 got released and im at loss how to get my Javascripts working in 4.2

    So i got a title published, without seamless it finds my JS fine and works as desired.. when using Seamless Play…the JS cannot access the page anymore ? Is this a bug or am i missing anything? The same code did work before 4.2

    Regards,

    Math

    #399739 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
    131 pts
    @mnotermans5114

    As extra note ( not sure whether that was before or is new in 4.2 ) i am noticing a lot of ‘layering’ of divs and iframes in Lectora Online published content. I am sure that thats causing my issues, especially because i am using ‘fit to width’ and the fullscreen options in Docebo…Testing my title in Lectora Online preview all works perfectly. Running it in the LMS..the Javascript fails…

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

    When you say Lectora Online preview do you mean Preview Page, or Publish Preview (after publishing).  Also do you use the methods described in the help which are necessary to reference the SPP display window and document?  If you can post an example of a script that doesn’t work I’d be happy to look into it!

    #399743 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
    131 pts
    @mnotermans5114

    Basically i am using the approach listed in the help. Im gonna doublecheck it against the help… see whether i miss something and either get you a sample .pkg and/or response on issues or fixes found.

    Some extra info… previewing i meant: Page Preview. Publishing as scorm, and then previewing it doesnt work either. I am aware of Page Preview not being real browserbased.. checking my file now…

    #399746 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
    131 pts
    @mnotermans5114

    Well.. i use JQuery for selection. Got classes set on all major elements to easily access them.
    In my original i used it as this
    var tocElement = $(‘.tocClass’);

    That works fine when dont using SPP.

    However when SPP is on this wont work.
    So reading the Help i changed it into this.
    var tocElement = $(‘.tocClass’,getDisplayWindow());

    Alas that didnot work either…

    #399748 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
    131 pts
    @mnotermans5114

    Thx Joe figured it out…  this worked…

    var tocElement = $(‘.tocClass’,getDisplayDocument());

     

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

    Great job, sorry for the misleading info in the help, we will get that corrected.

    @tleone4566 please correct the help link referenced above in LO & LD.

    #399752 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
    131 pts
    @mnotermans5114

    @joe and @tleone4566 i am not sure whether the help is incorrect. Depending on the developers specific needs i do think getDisplayDocument() or getDisplayWindow() might both be correct. I do think however there should be more samples and info for all users beginning and experienced on this kind of subjects. At some point i suggested writing ‘Best of’ or Cookbook with several experienced users. I do think this might be the time to get something like that started.

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

    I feel the use of document would be the most frequent use case for readers of the help, maybe we make that the first example and also state in some cases they might need to use getDisplayWindow() although I cannot think of any such example at the moment (when providing a context to jQuery).

    We are starting an effort to do document the object model and scripting best practices and examples.  I will include you. If you know of anyone else please have them contact me through the forum here.  Thanks.

    – Joe

     

     

     

    • This reply was modified 2 years, 4 months ago by Profile photo of Joe Wieloch Joe Wieloch.
Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.