Jump to content

Grid multiline


LJDP

Recommended Posts

How I can call a Delphi function from <a href...> tag?

 

<a href="#" onclick="ajaxRequest(MainForm.form, 'someEvent', ['param1=value1']);">Click me</a>

procedure TMainForm.AjaxEvent(Sender: TComponent; EventName: string; Params: TStrings);
begin
 if EventName='someEvent' then
   CallMyFunction(Params.Values['param1']);
end;

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...