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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...