Welcome Guest Search | Active Topics | Sign In | Register

Deprecated NavigationType from BeforeNavigateEventArgs Options
Nisha
Posted: Monday, December 9, 2019 5:57:03 AM
Rank: Newbie
Groups: Member

Joined: 11/19/2019
Posts: 2
private void webViewContent_BeforeNavigate(object sender, EO.WebBrowser.BeforeNavigateEventArgs e)
{
if (!e.NewUrl.ToString().StartsWith("about:blank") &&
!string.IsNullOrEmpty(e.NewUrl.ToString()) &&
!e.NewUrl.ToString().StartsWith("javascript") &&
!e.NewUrl.ToString().Contains("/umps/") &&
!e.NewUrl.ToString().Contains("/apex/"))
{

//Remove Chatter Pane Event when session expire
if (e.NewUrl.ToString().Contains("session"))
{
if (RemoveChatterPaneEvent != null)
RemoveChatterPaneEvent();
}
else if (!Manager.ExternalLinksDisabled)
{
if (e.NavigationType == EO.WebBrowser.NavigationType.LinkClicked)
{
ChatterWebBrowserManager.LaunchBrowser(e.NewUrl.ToString());
e.Cancel = true;
}
else if (e.NavigationType == EO.WebBrowser.NavigationType.Other)
webViewContent.LoadUrl(this.Manager.baseAppUrl);
}
else if (Manager.ExternalLinksDisabled)
{
if (e.NavigationType == EO.WebBrowser.NavigationType.LinkClicked)
e.Cancel = true;

else if (e.NavigationType == EO.WebBrowser.NavigationType.Other)
webViewContent.LoadUrl(this.Manager.baseAppUrl);
}
}
}


Above is the code we are using for before navigate, Can you please help us to find the replacement for this as there is no NavigationType
eo_support
Posted: Monday, December 9, 2019 9:51:50 PM
Rank: Administration
Groups: Administration

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

We believe we have already answered exactly the same question from you before here:

https://www.essentialobjects.com/forum/postst11535_Deprecated-NavigationType-from-BeforeNavigateEventArgs.aspx

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.