Entry Field Java Script Alters format of my Course

mcofield_08
mcofield_08 Community Member Posts: 16
Hi,

Just new to Lectora 17, and creating a test Responsive course. When I add and entry field, and use Java Script to send focus to the Entry Field, the course alters its format when published (Either to Review Link or HTML). Some things on the right side of the course appear now on the right, some items are displaying at the top of the screen that aren't supposed to be there. When I preview in IE/EDGE etc, all appears fine. But not published.

When I remove the below script or the action that runs the script, the format of the course is fine.

document.getElementById("entry270id").focus()

Thoughts????

Thanks for the help!

Mark

Comments

  • timk
    timk Community Member Posts: 1,176 ☆ Superstar ☆
    The difference between "Preview in Broswer" and default "Publish to HTML" is "Publish for Seamless Play". If you unchecked it, it should work.
  • mcofield_08
    mcofield_08 Community Member Posts: 16
    Thanks Tim,

    That did work!

    Any idea "why" this publishing feature would be causing this kind of issue?
  • _
    _ Community Member Posts: 84
    Ahh, I'm having similar strange issues with Javascript when published to Seamless Play.

    As far as I can tell, Seamless creates a couple of extra files in your published package, namely:

    - trviantis-opautils.js
    - trivantis-plageplayer.js

    I suspect these files change some fundamental aspects of how the pages are set up and displayed, which may be confusing our additional scripts.
  • timk
    timk Community Member Posts: 1,176 ☆ Superstar ☆
    The pages are somehow displayed in iframes to allow faster page changes and smoother transitions. In the introductoy video it's mentioned that you can uncheck it, if you use "advanced scripting" that may not work. Not sure, how the term "advanced" is defined.
Sign In or Register to comment.

So You Wanna Be An eLearning ROCKSTAR?

We're all fans of eLearning here! Want to become an eLearning ROCKSTAR? Just click on one of the buttons below to start your rocking journey!