Welcome Guest Search | Active Topics | Sign In | Register

Capturing an RSS Feed link and handling it Options
KimKamp
Posted: Thursday, January 31, 2019 8:21:58 AM
Rank: Advanced Member
Groups: Member

Joined: 3/13/2017
Posts: 33
In my WebView control, when I click on an RSS Feed subscription link, I can capture it as follows:

WebView2_BeforeRequestLoad() -> "https://gettingthingsdone.com/gtd-times/rss2"

In a regular Browser, clicking on a link gives me the choice of opening the link with a default program. In the EO Webview, it opens up the Source Code in a new page.

I can stop the loading of this Source Code with a WebView.StopLoad() command, but that doesn't accomplish what I want it to do, which is to open the URL with an app.

I can have my code do a Process.Start("https://gettingthingsdone.com/gtd-times/rss2") and it will ask for a default app in my default Windows browser. But, I'd like to be able to do that in my EO WebView.
Code: Visual Basic.NET


How do I capture this event in my EO WebView and open it with a default RSS program?
eo_support
Posted: Friday, February 1, 2019 2:12:04 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,221
Hi,

You pretty much does it the way you described: handling BeforeRequestLoad and then call Process.Start.

I am not sure what you meant by "In a regular browser, clicking on a link gives me the choice of opening the link with a default program". If you open the above link in Google Chrome browser, it will load the page and display the source of the page. Because EO.WebBrowser is based on the same Chromium browser engine Google Chrome use, it would have the same behavior.

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.