FOROS PROFESIONALES
WINDEV
,
WEBDEV
y
WINDEV Mobile
Inicio
|
Mensajes recientes
|
Conéctese...
|
Desconectar
|
Español
Inicio
→
WINDEV 2024
→
Receive parameters from javascript
Receive parameters from javascript
Iniciado por BARROS, 16,oct. 2019 15:05 - 1 respuesta
Conéctese…
BARROS
#1
Miembro registrado
5 mensajes
Publicado el 16,octubre 2019 - 15:05
Hi
I'm new with Windev and I'm, struggling to pass parameters between javascript executed from ExecuteJS command.
I have a HTM Object (windev) that browses a web site where I do a search and collect the result data.
I need to send that information to windev code.
How can I do that?
--
Barros
Mensaje modificado, 16,octubre 2019 - 15:07
Informar
0
0
BARROS
#2
Miembro registrado
5 mensajes
Publicado el 16,octubre 2019 - 22:41
Just to share the solution.
sJSCode2 is string = [
Devolve
}
]
HTM_Object.ExecuteJS(sJSCode2,Grava)
INTERNAL PROCEDURE Grava (bSuccess is boolean, ReturnValue is string)
IF NOT bSuccess
Error(ErrorInfo())
RETURN
END
MyArray is array of 5 string
sWK_Result is string
sWK_Result=Replace(ReturnValue,";",CR)
CSVToArray(sWK_Result, MyArray,CR)
//I deleted the rest of the code, because It's not relevant
END
--
Barros
Informar
0
0
→ Volver a WINDEV 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