yhejazi2016 / open-webkit-sharp

Automatically exported from code.google.com/p/open-webkit-sharp
0 stars 0 forks source link

Detect when a link is clicked #7

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi. Is there a chance to add an event to detect when a link is clicked in the 
future? I really need this feature to being able to use OpenWebKitSharp.
In OpenGecko I make it work in this way:

    Private Sub OpenGeckoBrowser1_DomClick(ByVal sender As System.Object, ByVal e As Skybound.Gecko.GeckoDomEventArgs)
        If e.Target IsNot Nothing Then
            Dim urlLink As String = e.Target.GetAttribute("href")
        End If
    End Sub

Thanks in advance.

Gabriel

Original issue reported on code.google.com by fasece...@gmail.com on 30 Sep 2011 at 12:10

GoogleCodeExporter commented 8 years ago
I will try to implement a similar feature but I am not sure if I manage to do 
so until version 1.8. The NewWindowRequest is still going to give you the link 
for clicked elements, but also for popups. 

Original comment by tsumalis96@gmail.com on 30 Sep 2011 at 5:53

GoogleCodeExporter commented 8 years ago
Thank you very much. Keep up the good work!

Gabriel

Original comment by fasece...@gmail.com on 30 Sep 2011 at 8:39

GoogleCodeExporter commented 8 years ago
Pls let me know when Click event functionality for WebKit browser be available, 
it is something similar to example above except that instead of link, I need it 
for buttons. I plan to switch to OWS but need to evaluate if it can support 
current system reqts. 

Original comment by hyec...@gmail.com on 26 Apr 2012 at 10:20

GoogleCodeExporter commented 8 years ago
This is a feature I as well need. Please confirm this is added. 

Original comment by BigBenCo...@gmail.com on 12 Nov 2012 at 8:16

GoogleCodeExporter commented 8 years ago
dom click event is need to me too...or what else can instead it? pls let me know

Original comment by lan...@gmail.com on 20 Dec 2012 at 6:46

GoogleCodeExporter commented 8 years ago
sorry, i found there is a way to catch dom events, here is the way, use it in 
browser document competed event, i don't know is this way is best way to do 
this, but it works

                    NodeList nodes = browser.Document.Elements();
                    foreach (Node node in nodes)
                    {
                        node.MouseDown += new EventHandler(browser_DomMouseClick);
                    }

Original comment by lan...@gmail.com on 20 Dec 2012 at 7:16

GoogleCodeExporter commented 8 years ago
Great

Great

[http://wisentechnologies.com/it-courses/.net-training.aspx Online dot net 
training]
[http://wisentechnologies.com/it-courses/.net-training.aspx online dot net 
training from India]

Original comment by gym.prat...@gmail.com on 14 Dec 2014 at 6:32