wxWebView Edge backend navigation events

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Post Reply
hiemann
In need of some credit
In need of some credit
Posts: 7
Joined: Tue Feb 09, 2021 9:28 am

wxWebView Edge backend navigation events

Post by hiemann »

Hi,

I used the wxWebView sample from master branch and wrote a little test html, see below.
I noticed different behaviour between wxWebViewBackendEdge vs wxWebViewBackendIE especially with internal anchor links.

Using the backend: wxWebViewBackendIE
All links create a navigationevent.
Title - generates title change event - OK
OnClickIntern - Navigation request event - OK
OnClickExtern - Navigation request event - OK
Anchro - Navigation request event - OK
Link-Anchor - Navigation request event - OK
Simple - Navigation request event - OK


Than switching to the backend: wxWebViewBackendEdge
(Compilation and installation worked - backend message from log: wxWebViewEdge Version: Microsoft Edge WebView2 88.0.705)

Title - generates title change event - OK
OnClickIntern - Nothing
OnClickExtern - generates Navigation request event - OK
Anchro - Nothing
Link-Anchor - Nothing
Simple - Nothing
Internal anchor links do not generate navigation events using the wxWebViewBackendEdge.


Any solution for wxWebViewBackendEdge to make internal anchor links working (creating an event)
Thanks in advance
Rico

Code: Select all

<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
<script>
	function mytitle()
	{
		document.title = 'test';	
	}	
	
	function myevent(id)
	{
		var e = document.getElementById(id).firstChild;
		window.location = "simple.html#func="+e.data;
	}

	function extern()
	{
		window.location = "https://www.wxwidgets.org";
	}	
</script>  
    <nav id="head">
	  <a href="#" id="test1" onclick="mytitle()">Title</a>
	  <a href="#" id="test" onclick="myevent('test')">OnClickIntern</a>
	  <a href="#" id="test2" onclick="extern()">OnClickExtern</a>
	  <a href="#test2" id="test3">Anchor</a>
	  <a href="simple.html#test4" id="test4">Link-Anchor</a>
	  <a href="#" id="test">Test5</a>
	</nav>
    <main>
     </main>
  </body>
</html>
User avatar
doublemax
Moderator
Moderator
Posts: 19103
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: wxWebView Edge backend navigation events

Post by doublemax »

Thanks for the info, but this is a user forum. It would be great if you could open a bug report at http://trac.wxwidgets.org

Thanks.
Use the source, Luke!
hiemann
In need of some credit
In need of some credit
Posts: 7
Joined: Tue Feb 09, 2021 9:28 am

Re: wxWebView Edge backend navigation events

Post by hiemann »

Post Reply