Weird problem : Javascript error

Working on an app to play our video webinars. It worked fine locally, then put it on our site and got these error (See below)
I then started putting Msgboxs in to see if it made it to an that section. up loaded then tried again. Did this multiple times in different parts of the program, nothing seemed to help. Then after another upload the new MessageBox it worked and displayed that MessageBox.

Then removed all the message boxes and essentially the program was back to the state it was my first started. And it now works. These weird problems scare me.

Anyway here’s a dump of the log with the errors.

Thanks to all that give this a good look!

2016-03-31 14:46:07
JavaScript Error:
Error: Could not execute returned javascript: Unexpected identifier
Source: var langdir = document.getElementsByTagName(‘body’)[0]; if(langdir) { langdir.removeAttribute(‘dir’); }
var langdir = document.getElementsByTagName(‘body’)[0]; if(langdir) { langdir.setAttribute(‘lang’,‘en’); }
Xojo.events.setSessionTimeout(600);
new timer(‘QJgiP9Hc’,[‘DoubleClick’,‘GotFocus’,‘KeyPressed’,‘LostFocus’,‘MouseDown’,‘MouseEnter’,‘MouseExit’,‘MouseMove’,‘MouseUp’,‘Action’]);
Xojo.controls[‘QJgiP9Hc’].setEnabled(true);
Xojo.controls[‘QJgiP9Hc’].setMode(0);
Xojo.controls[‘QJgiP9Hc’].setPeriod(70000);
new movieplayer(‘NokbEZGn’,[‘Error’]);
Xojo.controls[‘NokbEZGn’].setEnabled(true);
Xojo.controls[‘NokbEZGn’].setAllowFullScreen(true);
Xojo.controls[‘NokbEZGn’].setURL(0,’’,’’);
Xojo.controls[‘NokbEZGn’].setURL(1,’’,’’);
Xojo.controls[‘NokbEZGn’].setURL(2,’’,’’);
Xojo.controls[‘NokbEZGn’].init();
new textlabel(‘KeRaj8kv’,[‘TextChanged’]);
Xojo.controls[‘KeRaj8kv’].setEnabled(true);
new container(‘FuwLNsTG’,[‘Close’,‘Open’,‘Shown’,‘Open’,‘Shown’]);
Xojo.controls[‘FuwLNsTG’].setEnabled(true);
new button(‘YF8OIFc7’,[‘Action’]);
Xojo.controls[‘YF8OIFc7’].setEnabled(true);
Xojo.controls.YF8OIFc7.setAutoDisable(false);
new button(‘TkQpdUR2’,[‘Action’]);
Xojo.controls[‘TkQpdUR2’].setEnabled(true);
Xojo.controls.TkQpdUR2.setAutoDisable(false);
new textlabel(‘IZM82N9l’,[‘TextChanged’]);
Xojo.controls[‘IZM82N9l’].setEnabled(true);
new frameworkObject(‘HiPwqEgt’,[‘Close’,‘Open’,‘Shown’,‘Close’,‘Shown’]);
Xojo.controls[‘HiPwqEgt’].setEnabled(true);
Xojo.view.showPage(‘HiPwqEgt’);
document.title = “Video”;
Xojo.view.dismissLoader();

Msgbox are even worse in Web than desktop at disturbing events. If you need to debug on the host, better create a log by appending to a text file things you need to find out. In some systems, you can find system.debuglog in the Messages log, kind of like the Mac Console, but it is cluttered by many other things.

You can also use the JavaScript Console.

Sub Console(msg as String) self.ExecuteJavaScript("console.log('"+msg+"');") End Sub

for use, do

Console("My message")

it will be displayed in the JavaScript console of the browser.

From what I see in your posted error log, the error is in the framework. Greg will probably be able to tell you more.

If it does not happen locally, could be due to the longer time it takes between host and browser when going through the Internet. Some synchronization issue.

I have used the log system many times before. I’m basically use the message box just to see if the program got to those spots. But it never did until the end and then everything worked.

One of those very weird problems.