Could not execute returned javascript: Cannot read property 'setAttribute' of null

I am running into the following error only when the application is running on Xojo Cloud

The same code running in the IDE on my development mac des not throw the error.

Can someone please point my in the direction to start debugging this?

[code]Could not execute returned javascript: Cannot read property ‘setAttribute’ of null
Source: document.getElementById(“HJ2JT9bx_inner”).setAttribute(“data-gramm”, “false”);
document.getElementById(“Q5eYMOWY_inner”).setAttribute(“data-gramm”, “false”);
new button(‘JukwTq6r’,[‘Action’]);
Xojo.controls[‘JukwTq6r’].setEnabled(true);
Xojo.controls.JukwTq6r.setAutoDisable(false);
new button(‘baRuQLa9’,[‘Action’]);
Xojo.controls[‘baRuQLa9’].setEnabled(true);
Xojo.controls.baRuQLa9.setAutoDisable(true);
new textlabel(‘PTXLo2OC’,[‘TextChanged’]);
Xojo.controls[‘PTXLo2OC’].setEnabled(true);
new textlabel(‘V60tGT7J’,[‘TextChanged’]);
Xojo.controls[‘V60tGT7J’].setEnabled(true);
Xojo.controls[‘V60tGT7J’].setMultiline(true);
new dialog(‘xb3DnmoL’,[‘Close’,‘Hidden’,‘Open’,‘Shown’]);
Xojo.controls[‘xb3DnmoL’].setEnabled(true);
Xojo.controls[‘xb3DnmoL’].setResizable(false);
Xojo.controls[‘xb3DnmoL’].minWidth = 0;
Xojo.controls[‘xb3DnmoL’].minHeight = 0;
didFinishLoading();
Xojo.controls[‘xb3DnmoL’].present();
Xojo.controls[‘jAM2ogFy’].setPeriod(100);
Xojo.controls[‘jAM2ogFy’].setup(0,100);
Xojo.controls[‘jAM2ogFy’].setMode(1);
Xojo.controls[‘hDvxqdrQ’].setStyle(‘Style_Dj_Main’);
Xojo.controls[‘hDvxqdrQ’].refresh();
Xojo.controls[‘huczNvMM’].setStyle(‘Style_Dj_Main’);
Xojo.controls[‘huczNvMM’].refresh();
Xojo.controls[‘oobtImVD’].setStyle(‘Style_Dj_Main’);
Xojo.controls[‘oobtImVD’].refresh();
Xojo.controls[‘B9yRXkXs’].setStyle(‘Style_Dj_Main’);
Xojo.controls[‘B9yRXkXs’].refresh();
Xojo.controls[‘Xq62jZ7n’].setStyle(‘Style_Dj_Main’);
Xojo.controls[‘Xq62jZ7n’].refresh();
Xojo.controls[‘xiX06y05’].setStyle(‘Style_Dj_Main’);
Xojo.controls[‘xiX06y05’].refresh();

[/code]

You have your disable grammarly hack in the wrong place. That’s all I can tell from this though.

The reason you don’t see it locally is because the round trip is so short the control you’re setting grammarly:false on exists when the javascript is executed. Remote installations, like Xojo Cloud, have a lengthier round trip that can cause javascript errors if you’re doing javascript hacks outside the framework.

Nice catch Tim!
Thanks!