Spell checking using the Web browser control

James Levin
CODE AUTHOR
Posts: 6
 11 months 4 days ago #482 by James Levin
James Levin replied the code: Spell checking using the Web browser control
Here's a patch to the code for PB22R2 .. The following changes were made:
1. The default URL of WebBrowser control is empty.
In previous versions, when the default URL is empty, it will open about:blank by default so the Evaluatejavascriptsync function can be executed.
In PB 2022 R2, when the default URL is empty, it will not open any pages, resulting in no Evaluatejavascriptsync function being executed.

Please set the default URL of u_webbrowser_spellcheck to 'about:blank' to solve the issue.

2. Please note that in the WebBrowser event, only the asynchronous function EvaluateJavascriptAsync can be called. You can find this information in the article below.
docs.appeon.com/pb2022r2/pbug/Defining_u..._for_WebBrowser.html

Please move the script below from evet NavigationStateChanged to NavigationCompleted to avoid the application from getting stuck.

if not ib_initialized then
ib_initialized = true
uf_zz_set_text()
end if

Please Log in or Create an account to join the conversation.

James Levin
CODE AUTHOR
Posts: 6
 11 months 4 days ago #481 by James Levin
James Levin replied the code: Spell checking using the Web browser control
Here's a patch to the code for PB22R2 .. The following changes were made:
1. The default URL of WebBrowser control is empty.
In previous versions, when the default URL is empty, it will open about:blank by default so the Evaluatejavascriptsync function can be executed.
In PB 2022 R2, when the default URL is empty, it will not open any pages, resulting in no Evaluatejavascriptsync function being executed.

Please set the default URL of u_webbrowser_spellcheck to 'about:blank' to solve the issue.

2. Please note that in the WebBrowser event, only the asynchronous function EvaluateJavascriptAsync can be called. You can find this information in the article below.
docs.appeon.com/pb2022r2/pbug/Defining_u..._for_WebBrowser.html

Please move the script below from evet NavigationStateChanged to NavigationCompleted to avoid the application from getting stuck.

if not ib_initialized then
ib_initialized = true
uf_zz_set_text()
end if

This message has an attachment file.
Please log in or register to see it.

Please Log in or Create an account to join the conversation.

Miguel Leeuwe
 1 year 9 months ago #449 by Miguel Leeuwe
Miguel Leeuwe replied the code: Spell checking using the Web browser control
Fabulous!
Thanks again.

Please Log in or Create an account to join the conversation.

James Levin
CODE AUTHOR
Posts: 6
 1 year 9 months ago #448 by James Levin
James Levin replied the code: Spell checking using the Web browser control
Attached is a code sample. This is a zip file contains pbl created using pb 2021 build 1506.
Hope this helps

This message has an attachment file.
Please log in or register to see it.

Please Log in or Create an account to join the conversation.