I was thinking along the same lines yesterday, that the method is misnamed, as it’s not a “getter” method.
It is more of a “asynchronous trigger” method. Ie …
In the linked example, perhaps it should be named request_element_value(id)
?
(EDIT: The above method rename was done in the example.)
However, what this was aimed at, was to have old code work for both UI::WebDialog
and UI::HtmlDialog
.
BUT, it seems this is not really possible unless the code was designed previously to work asynchronously.