Jump to content

How to callback event from external application


bbm

Recommended Posts

Hi

I'm currently testing the demo "HTTP Post Callback - URLFrame - Auto Target". I would like to test the callback function in my application. Instead of displaying an HTML page in the uniURLFrame, I would like to display a page from a second server (also my own uniGUI application) via uniURLFrame.URL. A callback event should then be triggered back in the page of the other server displayed in the frame, which is then sent to the window of the uniURLFrame. How can I trigger the callback event?
Many greetings

Link to comment
Share on other sites

Hi,

In the sample project, the frame from which the callback event comes is created as HTML text. In this HTML text, placeholders are replaced by call information.

<form name="input" action="{URL_CALLBACK}" method="POST">

<a href="{CANCEL_URL}">

In my application, the page of another application should be displayed in the frame. For this, the URL property of the frame is used to refer to the other application. The other application was also developed by me (also uniGUI). How can I trigger the event (mycallback) of this application, just like from the HTML page?

  Sc:=UniSession.CallbackUrlEx('mycallback', Self, ['RES', 'OK']);
  S:=StringReplace(S, '{URL_CALLBACK}', Sc, []);

  Sc:=UniSession.CallbackUrlEx('mycallback', Self, ['RES', 'CANCEL']);
  S:=StringReplace(S, '{CANCEL_URL}', Sc, []);

I want to trigger the event by clicking a button in the second application

Best regards

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