wbOmniWV2 - Embedded Browser

Started by JTaylor, January 13, 2025, 08:06:56 AM

Previous topic - Next topic

JTaylor

I have created a way to embed WebView2 into a Dialog.  Hopefully Tony won't tell me this was already doable via the COM Control :)   Once I do a little more with this with my production stuff and give time for feedback, assuming anyone is interested in giving it a try, I will fold into the main wbOmnibus package.

In any event, it also has DOM access to the browser.  My goal was to have a replacement for Internet Explorer as I used that a lot, and I am reasonably pleased with the results.  The "Test DOM" button only works on the Amazon page to which it browses or, I guess, some other book page on Amazon.

    http://www.jtdata.com/anonymous/wv2_demo.zip

Please read the Help.  It is under the "WebView" section.   There are some quirks.  I included the executable for the demo script due to one of the quirks but, of course, it is always wise to compile your own.

Also, it might be a little slow the first time your run it as WebView2 creates some support structures.

Jim

spl

Jim graciously allowed me to test privately. It is worth the look.
Stan - formerly stanl [ex-Pundit]

JTaylor

I also intended to mention that I am not sure how forgiving the DOM access is regarding poorly formed HTML.  If you have problems you might check that possibility first.


Thanks Stan.  It is a lot prettier now :-)

Jim

td

Interesting. WebView2 is already on our to-do list. But since the list is long it hasn't been gotten to yet.
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade

JTaylor

If you know how I could initialize WebView2 without having to compile a script, that would GREATLY appreciated.  Development/Testing is very annoying.

Jim

Quote from: td on January 13, 2025, 09:28:06 AMInteresting. WebView2 is already on our to-do list. But since the list is long it hasn't been gotten to yet.

JTaylor

Also, if someone downloaded this earlier and you seem to be missing a file, I posted an update to correct that problem.

Sorry.

Jim

spl

Quote from: JTaylor on January 13, 2025, 01:55:42 PMIf you know how I could initialize WebView2 without having to compile a script, that would GREATLY appreciated.  Development/Testing is very annoying.


Jim, I'll take a discussion of this with you offline to avoid crowding this thread with tangents.
Stan - formerly stanl [ex-Pundit]