I’m trying to use ajax() to get data from a remote computer.
My code is
arch = Ajax("http://" &inpURLInterfases.value & "/descarga.php/?catalogo=actividades.txt")
If arch.status = 200 Then
LlenaCatalogoActividades(arch.responseText)
Else
MsgBox "ERROR" & vbCRLF & arch.statusText
End If
When I run the code on my computer (chrome) it runs flawlessly.
Then I generated a native android app using voltserver
I tried the app in an android tablet (Android 10) and in an android phone (Android 12), both give back this error message:
NetworkError: Failed to execute ‘send’ on ‘XMLHttpRequest’: failed to load ‘http://yoursite.com/a/descarga.php/?catalogo=actividades.txt’
As I mentioned, it runs flawlessly on Chrome (Mac & Windows 10)
All comments and suggestions will be appreciated.