irigsoft Posted September 24, 2020 Author Share Posted September 24, 2020 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. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted September 24, 2020 Share Posted September 24, 2020 7 minutes ago, irigsoft said: 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. Then the processing is only on the server side. Quote Link to comment Share on other sites More sharing options...
irigsoft Posted September 24, 2020 Author Share Posted September 24, 2020 ОК Quote Link to comment Share on other sites More sharing options...
irigsoft Posted September 24, 2020 Author Share Posted September 24, 2020 Is it posibble to use Ajax: Quote Link to comment Share on other sites More sharing options...
Sherzod Posted September 24, 2020 Share Posted September 24, 2020 5 minutes ago, irigsoft said: Is it posibble to use Ajax: Yes. Quote Link to comment Share on other sites More sharing options...
irigsoft Posted September 24, 2020 Author Share Posted September 24, 2020 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; Quote Link to comment Share on other sites More sharing options...
Sherzod Posted September 24, 2020 Share Posted September 24, 2020 21 minutes ago, irigsoft said: how to apply by ExtEvent.click execute ajax procedure, and in ajax to execute dll functon. You'd better use OnClick. In both cases, there is a request to the server. 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.