Menu

DPFWEB override url/link clic

luca
2013-10-16
2013-10-18
  • luca

    luca - 2013-10-16

    Is there a way to detect and override a url/link in html page loaded inside a DPFWEB as we can do in TWebBrowser???

    eg. TMS iCL WebViews expose event to detect an url click ...

    procedure TForm1073.TMSFMXNativeUIWebView1ShouldStartLoadWithRequest(
    Sender: TObject; ARequest: string;
    ANavigationType: TTMSFMXNativeUIWebViewNavigationType;
    var AShouldStart: Boolean);
    begin

     

    Last edit: luca 2013-10-17
  • Babak Yaghoobi

    Babak Yaghoobi - 2013-10-17

    Hi Luca,

    Use TDPFUIWebView OnRequest Event

    Regards

     
    • luca

      luca - 2013-10-18

      Hi Babak

      The OnRequest Event doesn't return infromation about link:
      ARequest: string; --> to make some action
      AShouldStart: Boolean --> to abort or continue

      thanks

       

      Last edit: luca 2013-10-18
  • Babak Yaghoobi

    Babak Yaghoobi - 2013-10-18

    Hi Luca

    Download last source [code] and see new OnRequest parameters.

    regards

     

    Related

    Code: code

    • luca

      luca - 2013-10-18

      Wow! Same Embarcadero speed in maintaining code ;-)

      thanks

       

      Last edit: luca 2013-10-22

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.