PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 25 → WX - Show Html in Mobile
WX - Show Html in Mobile
Débuté par BOLLER, 02 nov. 2017 15:51 - 1 réponse
Membre enregistré
3 651 messages
Popularité : +175 (223 votes)
Posté le 02 novembre 2017 - 15:51
// Summary: <specify the procedure action>
// Syntax:
//ShowHtml (<nomchamp> is string, <nomhtml> is string)
//
// Parameters:
// nomchamp (UNICODE string): <specify the role of nomchamp>
// nomhtml (UNICODE string): <specify the role of nompdf>
// Return Value:
// None
//
// For instance:
// Indicate an example.
//
// modeSVG (default value=1): <specify the role of modeSVG>
Procedure ShowHtml(nomchamp is string,nomhtml is string)

IF InAndroidMode() AND NOT InTestMode THEN
activerjavascript(nomchamp)
{nomchamp,indControl}=nomhtml
END


--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 99949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.com.br/
Membre enregistré
3 651 messages
Popularité : +175 (223 votes)
Posté le 02 novembre 2017 - 16:18
//Java PDF/HTML View

import android.webkit.WebView;
public static void activerjavascript(String nomchamp)
{
WebView mywebview=(WebView) getView(nomchamp);
mywebview.getSettings().setJavaScriptEnabled(true);
}


--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 99949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.com.br/
Message modifié, 02 novembre 2017 - 16:18