Enable and fix Lectora titles for the Opera browser
Friday, June 17th, 2011Problem: If you publish a title with Lectora, and try to view it from Opera, instead of the title you see an error message
Your browser does not support dynamic html. Please download a current version of either Microsoft'" DESIGNTIMESP=18189>Microsoft Internet Explorer or Mozilla'" DESIGNTIMESP=18192>Mozilla Firefox and try visiting our site again. Thank You.
Solution: You have to modify trivantis.js in line 353 and line 355. The modifications are displayed in bold
this.ns = (name=="ns" && this.v>=4)||(navigator.userAgent.indexOf("Opera")!=-1)
this.ns4 = (this.ns && this.v==4)
this.ns5 = (this.ns && this.v==5)||(navigator.userAgent.indexOf("Opera")!=-1)
IMPORTANT: WordPress fucks up the quotation marks above, fix them by hand!!!
This tells Lectora's code to treat Opera like Netscape Navigator and its derivates. For the title we are developing for the WHO (ICF eLearning tool) it works flawlessly.
This fix is taken from this Lectora forum message, posted by ssneg.
(ssneg also explains why it is not possible to override this.min and set it to true – because Lectora only includes code for IE or NS to display the title contents, like buttons, later on. Thus we need for Opera to "pretend" that it is Navigator. The code works.)
Do you know any other browsers incompatible with Lectora? Please post a comment, and we might find a solution :-)!
