PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV 2024
→
Receive parameters from javascript
Receive parameters from javascript
Started by BARROS, Oct., 16 2019 3:05 PM - 1 reply
Connect yourself…
BARROS
#1
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
Report
0
0
BARROS
#2
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
Report
0
0
→ Go back to WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text