PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WINDEV 2024 → Receive parameters from javascript
Receive parameters from javascript
Started by BARROS, Oct., 16 2019 3:05 PM - 1 reply
Registered member
5 messages
Posted on October, 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
Message modified, October, 16 2019 - 3:07 PM
Registered member
5 messages
Posted on October, 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