I have the most simple location app possible. With one single webpage with a DeviceLocation control called ‘weblocator’ with the events ‘devicelocation’ and ‘error’ resulting in a message box. In the open event of the webpage I have weblocator.requestdevicelocation. That’s all,
When compiling it crashes with an apparent Javascript error. (I have the latest Javascript and compiled it with Sarfati as well as Firefox as browsers both resulted in this behaviour). Xojo’s example ‘MapViewer’ doesn’t start up either. Please what can be wrong (maybe it is related to SSL???)
The error reads:
Could not execute returned javascript: undefined is not an object (evaluating ‘Xojo.controls[‘ZNFAjcYb’].getDeviceLocation’)
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.controls[‘ZNFAjcYb’].getDeviceLocation(30000,60000, false);
new devicelocation(‘ZNFAjcYb’,[‘Close’,‘DeviceLocation’,‘DoubleClick’,‘Error’,‘GotFocus’,‘KeyPressed’,‘LostFocus’,‘MouseDown’,‘MouseEnter’,‘MouseExit’,‘MouseMove’,‘MouseUp’,‘Open’,‘Shown’]);
Xojo.controls[‘ZNFAjcYb’].setEnabled(true);
new frameworkObject(‘gCrPN8LU’,[‘Close’,‘Open’,‘Shown’]);
Xojo.controls[‘gCrPN8LU’].setEnabled(true);
Xojo.view.showPage(‘gCrPN8LU’);
document.title = “Untitled”;
Xojo.view.dismissLoader();