FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WINDEV Mobile 2024
→
Javascript security settings for Android HTML control
Javascript security settings for Android HTML control
Débuté par Stewart MICHAEL, 20 sep. 2016 12:47 - Aucune réponse
Connectez-vous…
Stewart MICHAEL
#1
Posté le 20 septembre 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.
Signaler
0
0
→ Revenir à WINDEV Mobile 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (précédentes versions)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte