FOROS PROFESIONALES
WINDEV
,
WEBDEV
y
WINDEV Mobile
Inicio
|
Mensajes recientes
|
Conéctese...
|
Desconectar
|
Español
Inicio
→
WINDEV Mobile 2024
→
Javascript security settings for Android HTML control
Javascript security settings for Android HTML control
Iniciado por Stewart MICHAEL, 20,sep. 2016 12:47 - No hay respuesta
Conéctese…
Stewart MICHAEL
#1
Publicado el 20,septiembre 2016 - 12:47
IF
HTTPRequest
(
s
Query
)
=
True
THEN
// Retrieves the result of the query
//if HTTPSendForm("Auth1",surl,httpGet)=true then
buf
ResHTTP is Buffer
=
HTTPGetResult
(
httpResult
)
//
HTM_microsoft_response..Value = bufResHTTP
//
IF IniOSMode() = True OR IniOSSimulatorMode() = True OR IniOSEmulatorMode() = True THEN
IF
StringCount
(
buf
ResHTTP
, “
ISO
-
8859
-
1
”
,
IgnoreCase
) =
0
THEN
gs
HTTPResult
=
UTF8ToString
(
buf
ResHTTP
)
ELSE
gs
HTTPResult
=
AnsiToUnicode
(
buf
ResHTTP
)
END
//
ELSE IF InAndroidMode() = True OR InAndroidSimulatorMode() = True OR InAndroidEmulatorMode() = True
//
// result in Android
//
gsHTTPResult = UTF8ToString(bufResHTTP)
HTM_
microsoft_response
..
SecurityHtml
=
False
Info
(
gs
HTTPResult
)
//
END
HTM_
microsoft_response
=
gs
HTTPResult
ELSE
HTTPError is
string
= (
HTTPGetResult
(
httpHeader
)
)
Error
(
HTTPError
)
END
The code above works for IOS but not for Android (the HTTPRequest is for a OneDrive login). The actual HTM control is blank on an android phone but the info request shows HTML code saying that the javascript is not enabled. The checkbox is selected though to allow scripts to be run as well as the "HTM_microsoft_response..SecurityHtml = False" line
I have left the commented lines to show some of the options I have tried but to be honest I could have filled a few pages with that (just loading the string straight to the HTML gives me a set of Chinese characters for example).
Thanks for any help that can be suggested.
Informar
0
0
→ Volver a WINDEV Mobile 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (versiones precedentes)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Búsqueda Tipo
Sólo temas
Todos los mensajes
Periodo Buscar
Cualquier fecha
Última hora
Última 24 horas
Última semana
Último mes
Último año
Cancelar
Vista previa del mensaje
Añadiendo una imagen
Importar una imagen desde una URL
Enviar una imagen desde un archivo de su disco
Arrastrar un archivo o click en "Examinar..."
o
Cancelar
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Texto