Kurt Posted April 29, 2023 Share Posted April 29, 2023 Hi, I want to reuse the beforeInit function from a javascript file. How will I be able to reuse it for my unigui components. thanks... Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 29, 2023 Share Posted April 29, 2023 Hello, Can you clarify your question and case? Quote Link to comment Share on other sites More sharing options...
Kurt Posted April 29, 2023 Author Share Posted April 29, 2023 Hi, I want to be able to use a function from a javascript file. this is my js file "Win32/Debug/files/js/app.js" i want to reuse the myBeforeInit function in different UniGUIComponents. for example: UniImage1, UniImage2 and UniImage3 uses the myBeforeInit function Quote Link to comment Share on other sites More sharing options...
erich.wanker Posted May 2, 2023 Share Posted May 2, 2023 if i understand you correctly - you are searching this: ajaxRequest(MainForm.form,''News'' , [''param0=par1'' , ''param1=par2'' ]); and in Mainform you get Infos via: procedure TMainForm.UniFormAjaxEvent( Sender : TComponent; EventName : string; Params : TUniStrings ); ..so the javascript "talks" to delphi/unigui 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.