- Dexter Madrinan
- PowerBuilder
- Wednesday, 11 January 2023 03:24 AM UTC
Hi Guys,
In the Window PostOpen event, Javascript functions are not recognized/found when EvaluateJavascriptAsync() is invoked on the Webbrowser control. Also, dynamically rendered HTML has the same issue.
Code:
string ls_json
int li_return
ls_json = wf_get_archive_hist(as_key)
if gf_isstringnull(ls_json,'')<>'' then
ls_js="SetDnoteArchiveHist('"+ls_json+"');"
li_return = wb_1.EvaluateJavascriptAsync( ls_js)
yield()
end if
Above code is invoke at window postevent ue_postopen() .
Version: PB 2022
Your advise is highly appreciated.
Best Regards,
Dexter P. Madrinan
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.