Welcome to the Lectora and CourseMill Forums
If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed.
-
Allow selecting compatible browsers (and versions) when publishing
The file trivantis.js controls which browsers are allowed to view course content and display a fixed message when a browser does not meet its tests.
Unfortunately, this javascript is flawed in that it fails to allow certain browsers (like Opera) to view Lectora content. A simple fix (search the general forum for "Opera") will correct this problem but you will need to manually replace this .js file each time you publish!
My suggestions to Trivantis (related to the trivantis.js file)
Allow for a dynamically created trivantis.js file.....
- Allow for selecting supported browsers and versions
-- For instance, I want to disallow any browser older than IE7
- Allow for customizing the incompatibility message
- Fix the Opera browser check
- Display a warning message but allow the learner to continue to the course
-
-

Originally Posted by
sconnell
A simple fix (search the general forum for "Opera") will correct this problem
Hi,
I've been looking for this magical trivantis.js fix all over the forums but I cannot find it. Could you please point me in the right direction? Thank you!
Serge
-
-

Originally Posted by
ssneg
Hi,
I've been looking for this magical trivantis.
js fix all over the forums but I cannot find it. Could you please point me in the right direction? Thank you!
Serge
The thread you are looking for is here: http://forum.trivantis.com/f2/lector...ng-opera-9906/
To summarize, the line that needs to be changed in the travantis.js is:
line #364
this.min = (this.ns||this.ie | this.op)
But you would need to do this everytime you publish a course. See the above thread for a message I posted about changing Opera to act like another browser. This might be a better solution.
-
The Following User Says Thank You to sconnell For This Useful Post:
-

Originally Posted by
sconnell
The thread you are looking for is here:
http://forum.trivantis.com/f2/lector...ng-opera-9906/
To summarize, the line that needs to be changed in the travantis.
js is:
line #364
this.min = (this.ns||this.ie | this.op)
But you would need to do this everytime you publish a course. See the above thread for a message I posted about changing Opera to act like another browser. This might be a better solution.
Since this is posted in the Suggestions forum,
***** TRIVANTIS... PLEASE FIX THIS PROBLEM! *****
-
-

Originally Posted by
sconnell
To summarize, the line that needs to be changed in the travantis.
js is:
line #364
this.min = (this.ns||this.ie | this.op)
Hi, I tried this, and encountered a problem (and solved it.. read on).
Essentially, Trivantis.js checks for browser type: is it IE, NS, NS5, Opera or something else. It's minimal requirement is IE or NS/NS5, and your "patch" to line #364 expands the minimum requirements to include Opera as well. So far so good.
But if you use buttons inside your project, Trivantis.js checks for the browser type AGAIN, to select one of two ways of rendering buttons. Since the script is pretty sure it's either IE or NS, it has two conditions: if browser=ie do X1, if browser=ns do X2. Since our browser=op, it does nothing, objects are not created, buttons are not shown, the course produces a silent error message in JS error console. Ouch.. (I'm kinda used to having buttons in my courses).
So instead of expanding the minimum requirements in line #364, I changed lines #354 & #356
from
this.ns = (name=="ns" && this.v>=4)
to
this.ns = (name=="ns" && this.v>=4)||(navigator.userAgent.indexOf("Opera")!=-1)
and from
this.ns5 = (this.ns && this.v==5)
to
this.ns5 = (this.ns && this.v==5)||(navigator.userAgent.indexOf("Opera")!=-1)
so that Trivantis.js will always assume that Opera is NS5 (or Firefox, in layman's terms). Buttons are back, and a few CSS incompatibilities that I see in the error console do not manifest themselves.
I hope this helps someone.
Last edited by ssneg; 03-15-2011 at 05:56 AM.
Reason: clarity
-
The Following User Says Thank You to ssneg For This Useful Post:
-
This is essentially what I eventually did in the code... only I selected IE. But your suggestion is a better idea. Thanks for that!
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
Lectora and CourseMill are registered trademarks of Trivantis Corporation, Camtasia and Snagit are registered trademarks of TechSmith Corporation and
Flypaper is a trademark of Flypaper Studio. Camtasia and Snagit are used with the permission of TechSmith Corporation.
Copyright © 1999-2012 Trivantis Corporation Inc. All rights reserved.