Hi
I need your support
I opened a html file with webbrowser component (UIWebView)
the html file like
... Click-1 Click-1
...
I need click event info/clicked link.
How can get info when clicked link in html file like "link1.html" clicked.
I didn't find any way for it with DPF and
today I try to get this info with XE6 with this code
WebBrowser1.EvaluateJavaScript('$("a").click(function(e){ e.preventDefault(); var yourHREF =
$(this).attr("href"); alert(yourHREF); });');
I am getting link info on alert popup but it is html side, how can get it to delphi side with DPF or XE6, I must read and write this link clicked info to db.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi
I need your support
I opened a html file with webbrowser component (UIWebView)
the html file like
...
Click-1
Click-1
...
I need click event info/clicked link.
How can get info when clicked link in html file like "link1.html" clicked.
I didn't find any way for it with DPF and
today I try to get this info with XE6 with this code
WebBrowser1.EvaluateJavaScript('$("a").click(function(e){ e.preventDefault(); var yourHREF =
$(this).attr("href"); alert(yourHREF); });');
I am getting link info on alert popup but it is html side, how can get it to delphi side with DPF or XE6, I must read and write this link clicked info to db.
Hi Ahb
All changing URL's in JavaScript or in your code fired by OnRequest Event, you can catch it in this event.
Regards