Menu

HTML Pages - UIWebView

2014-04-17
2014-04-23
  • Ahb Toplama

    Ahb Toplama - 2014-04-17

    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.

     
  • Babak Yaghoobi

    Babak Yaghoobi - 2014-04-23

    Hi Ahb

    All changing URL's in JavaScript or in your code fired by OnRequest Event, you can catch it in this event.

    Regards

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.