Volk65 Posted June 30, 2018 Share Posted June 30, 2018 Hi All! I need to intercept a link call in UniHTMLMemo or UniHTMLFrame components.For example, the database generates such a link <a href="MyTagName=6574">Bla..bla..bla< / a>. When I click on the link I have to get to a procedure like OnAjaxEvent, or something else and get "MyTagName=6574"Is that possible? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 30, 2018 Share Posted June 30, 2018 Hi, For example, try this: <a href="#" onclick="window.parent.ajaxRequest(window.parent.O0, 'hrefclick', ['MyTagName=6574'])">testlink</a> procedure TMainForm.UniFormAjaxEvent(Sender: TComponent; EventName: string; Params: TUniStrings); begin if EventName = 'hrefclick' then ShowMessage(Params.Values['MyTagName']); end; Quote Link to comment Share on other sites More sharing options...
mhmda Posted June 30, 2018 Share Posted June 30, 2018 DD, Good solution Quote Link to comment Share on other sites More sharing options...
Volk65 Posted June 30, 2018 Author Share Posted June 30, 2018 Thanks DD Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.