Jump to content

ClientEvents from a javascript files


Kurt

Recommended Posts

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"
image.png.7be30daf46d997b7e2848097cc8b947c.png

i want to reuse the myBeforeInit function in different UniGUIComponents. for example:

UniImage1, UniImage2 and UniImage3 uses the myBeforeInit function

Link to comment
Share on other sites

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 

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...