Lectora Online 4.2, fullscreen and Javascript...

mnotermans5114
Community Member Posts: 916 ☆ Roadie ☆
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
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
Comments
-
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...
-
wheels Florida USACommunity Member, Administrator, Moderator, Rockstar Manager Posts: 665 eLearning ROCKSTAR Admin TeamWhen 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!
-
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... -
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... -
-
wheels Florida USACommunity Member, Administrator, Moderator, Rockstar Manager Posts: 665 eLearning ROCKSTAR Admin TeamGreat 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. -
@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.
-
wheels Florida USACommunity Member, Administrator, Moderator, Rockstar Manager Posts: 665 eLearning ROCKSTAR Admin TeamI 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
Categories
- 35.8K All Categories
- 109 ✫ Announcements
- 33.1K Lectora®
- 31.1K Lectora Discussions
- 28.9K Lectora Desktop
- 2K Lectora Online
- 2K Lectora Feature Requests
- 71 Lectora User Groups
- 36 Lectora Accessibility User Group (LAUG)
- 22 ELB Learning Content
- 22 ELB Learning Content Discussions
- 321 CenarioVR®
- 188 CenarioVR Discussions
- 133 CenarioVR Feature Requests
- 41 Rockstar Learning Platform®
- 38 Rockstar Learning Platform Discussions
- 108 CourseMill®
- 108 CourseMill Discussions
- 47 ReviewLink®
- 47 ReviewLink Discussions
- 7 The Training Arcade®
- 7 The Training Arcade Discussions
- 934 All Things eLearning
- 36 eLearning Development
- 546 Learning Management System (LMS) Integration
- 332 Web Accessibility
- 1.2K ♪ The Green Room
- 9 Additional Learning Products