Another way for Htmldialog get_element_value. Need Help

Which is what our tests proved 18 days ago. (ie, the “trigger” cannot be sent to the CEF if the Ruby is wound up in a wait loop. The Ruby method must return before SketchUp’s C-side will send the “trigger” to the CEF process.)

Which was also the conclusion of this and the other thread (despite the wishes of the OPs migrating from UI::WebDialog,) to have a synchronous “getter” method equivalent of get_element_value.
It is also, why I changed the name of the “trigger” method (in the example) to request_element_value() and gave the reason …

:warning: Changed the name of get_element_value() to request_element_value()
because there is no way to receive synchronous values from JS in the UI::HtmlDialog class.


Just opened another issue to add the DevCamp 2017 examples link to the class (and perhaps some statements that are more clear and informative regarding the new class’ asynchronous nature.)