Logo
My Account |  Site Map | Contact Us  
Welcome Guest Search | Active Topics | Sign In | Register

EventHandler not triggered after exited Java application Options
Duka
Posted: Wednesday, February 7, 2018 8:02:21 AM
Rank: Newbie
Groups: Member

Joined: 1/16/2015
Posts: 4
First of all, I tried to re-produce this in your TabbedBrowser, but it was not possible as it does not support Java.
The problem seems to be that an EventArgs to signle that you want to exit the browser is not triggered when
you have exited Java application.

1 View a homepage (like spigo.dk) from your embedded browser
2 Go to a link that starts a Java application (on Spigo choose a game like Yatzy)
3 Close the Java application
4 Trigger the Exit Browser event
5 Event is never triggered - the event handler is never called (!?)

After reinit of the embedded browser and use of links that does not start a Java application it works fine
and everything works as supposed to.

Thanks
Jess


Public Class GoBackFromBrowserRequestEventArgs
Inherits EventArgs
' Body omitted
End Class

Public Event GoBackFromBrowserRequest As EventHandler(Of GoBackFromBrowserRequestEventArgs)

Private Sub BrowserControl_GoBackFromBrowserRequest(sender As Object, e As Controls.BrowserEventArgs.GoBackFromBrowserRequestEventArgs) Handles BrowserControl.GoBackFromBrowserRequest
' Body omitted
End Sub

Private Sub ReturnFromBrowserExecute()
Try
' Close loading window
HideLoadingIndicatorIfShowing(True)
' Remove prev browser windows
RemovePreviousBrowserWindows()
' Go to blank
_LoadingEmptyStartPage = True
NavigateToUrl("about:blank", False)

' Raise event
Dim objEventArgs As New GoBackFromBrowserRequestEventArgs
RaiseEvent GoBackFromBrowserRequest(Me, objEventArgs)
Catch ex As Exception
End Try
End Sub

eo_support
Posted: Wednesday, February 7, 2018 11:31:04 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 20,070
Hi,

I am not sure what you meant by Java application. EO.WebBrowser is based on Google's Chromium browser engine. The Chromium browser engine does NOT support Java applet because Sun did not produce a PPAPI version of their Java plugin and PPAPI is the only plugin interface supported in newer version of the Chromium browser engine.

I also do not see anything related to our product in the code you posted. Can you explain how they are related to our product?

Thanks!
Duka
Posted: Thursday, February 8, 2018 2:50:18 AM
Rank: Newbie
Groups: Member

Joined: 1/16/2015
Posts: 4
By Java application, I do mean Java Applet. We are using the newest version by 30/jan/2018 from you, and we are able to start a Java Applet, but when closing the applet it consumes the event silently as described earlier.

I can show you with a couple of screen prints. I just need a place to put them?
eo_support
Posted: Thursday, February 8, 2018 3:09:20 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 20,070
As we have already explained, the current version of EO.WebBrowser does NOT support Java/Java Applet. So if you wish to continue using your Java Applet, you need to look for a different solution. If you do not believe us, using Chrome browser to load the following page:

https://www.java.com/en/download/installed.jsp

And the page will tell you that Chrome browser does not support Java.

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.