Atozed Forums
Read value of HTML element back to delphi - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html)
+--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html)
+---- Forum: English (https://www.atozed.com/forums/forum-16.html)
+----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html)
+----- Thread: Read value of HTML element back to delphi (/thread-1280.html)



Read value of HTML element back to delphi - PDSBILL - 10-02-2019

I have a need to read the value of a rendered html element.
I added a iwbutton with script line for on-click event to get the value and show it using alert() and it works,  but really want to get the value (String) and save it to a local delphi variable.
alert(document.getElementsByClassName("fu-upload-listItem").length);   this works

how do I get the value back to delphi?


RE: Read value of HTML element back to delphi - kudzu - 10-03-2019

You can use async call backs which are shown in the demos.