GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEV
,
WEBDEV
e
WINDEV Mobile
Inicio
|
Mensagens recentes
|
Conecte-se...
|
Disconnect
|
Português
Inicio
→
WINDEV 2024
→
Receive parameters from javascript
Receive parameters from javascript
Iniciado por BARROS, out., 16 2019 3:05 PM - 1 resposta
Conecte-se…
BARROS
#1
Membro registado
5 mensagems
Publicado em outubro, 16 2019 - 3:05 PM
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
Mensagem modificada, outubro, 16 2019 - 3:07 PM
Denunciar
0
0
BARROS
#2
Membro registado
5 mensagems
Publicado em outubro, 16 2019 - 10:41 PM
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
Denunciar
0
0
→ Voltar para WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (versões anteriores)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Tipo de Pesquisa
Apenas tópicos
Todas as mensagens
Período de pesquisa
Qualquer momento
Última hora
Últimas 24 horas
Semana passada
Mês passado
Ano passado
Cancelar
Pré-visualização da sua mensagem
Adicionar imagem
Importar uma imagem de uma URL
Enviar uma imagem a partir do seu disco
Deixe um ficheiro ou clique em "Procurar ..."
ou
Cancelar
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Texto