I have a workspace named “test” with a database named “test” with no tables and only one page named “test.a5w”. That page has only one UX component named “test.a5cmp”. That component has only one control, a submit button. The enable condition for that control is cleared so the submit button is always active. The javascript for the submit button is standard as: {dialog.object}.submit(); The afterafterDialogValidate event has only one statement: file.append_line("c:\a5out\out1.txt", "worked"). The local host is enabled and the component submit button works in working preview. The file "c:\a5out\out1.txt” is created and written.
The page and component is then published to a local webroot sub folder named “test” and opened in a browser with the url “http://localhost/test/test.a5w” and again the submit button works as normal, the file "c:\a5out\out1.txt” is created and written.
However, in addition to the local host, I also have an active normal wireless internet connection. But when I put my computer in “Airplane” mode, the submit button no longer works. It is still enabled but the afterafterDialogValidate event never fires and the file is not written. The same is true if the computer is not in “Airplane” mode but the active internet connection is disconnected or disabled but the local host is still active.
So it seems that the submit button javascript fails when the only active server is the local host. It only works if there is an active remote connection in addition to the local host.
Other buttons using javascript functions like an alert seem to work fine with the local host, with or without a remote connection. Only the submit button fails.
I have tested this using chrome, edge and IE11 all in widows 10.
Has anyone else noticed this or can explain this. It is not a serious problem but I am curious. This may be relevant to a recent post at
http://www.alphasoftware.com/alphafo...ished-a5w-page
Thanks for reading,
Irwin
The page and component is then published to a local webroot sub folder named “test” and opened in a browser with the url “http://localhost/test/test.a5w” and again the submit button works as normal, the file "c:\a5out\out1.txt” is created and written.
However, in addition to the local host, I also have an active normal wireless internet connection. But when I put my computer in “Airplane” mode, the submit button no longer works. It is still enabled but the afterafterDialogValidate event never fires and the file is not written. The same is true if the computer is not in “Airplane” mode but the active internet connection is disconnected or disabled but the local host is still active.
So it seems that the submit button javascript fails when the only active server is the local host. It only works if there is an active remote connection in addition to the local host.
Other buttons using javascript functions like an alert seem to work fine with the local host, with or without a remote connection. Only the submit button fails.
I have tested this using chrome, edge and IE11 all in widows 10.
Has anyone else noticed this or can explain this. It is not a serious problem but I am curious. This may be relevant to a recent post at
http://www.alphasoftware.com/alphafo...ished-a5w-page
Thanks for reading,
Irwin
Comment