Jump to content

Replace Button.onClick by ExtEvents.click


irigsoft

Recommended Posts

1 hour ago, Sherzod said:

If you know how the function works (I mean the code), then you can try to port this code to JS.

I do dll, but it is dll for many applications, it is basic for my Desktop and Web applications. I don't want to do different dlls for desktops and for the web.

Link to comment
Share on other sites

OK, how to apply by ExtEvent.click execute ajax procedure, and in ajax to execute dll functon.

How on Extevent.Click to execute ajax ?

it 's OK: 

1.

onclick="parent.ajaxRequest(parent.MainForm.window, '_test', [])

2. MainForm -> OnAjaxEvent:

procedure TMainForm.UniFormAjaxEvent(Sender: TComponent; EventName: string;
  Params: TUniStrings);
begin
 if EventName='_test' then
   ShowMessage('test');
end;
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...