delagoutte Posted August 22, 2016 Share Posted August 22, 2016 Hello, i need 2 application that could communicate between themself. I try create a prototype. I create a unigui app (salve app) with a memo and on mainForm i use onajaxEvent procedure TMainForm.UniFormAjaxEvent(Sender: TComponent; EventName: string; Params: TUniStrings); begin UniMemo1.Lines.Add(EventName+' : '+Params.Text); end; i create a second app(master app) with a uniurlframe with URL property : the adress of slave app i add a unibuton with this code procedure TMainForm.UniButton1Click(Sender: TObject); begin UniSession.AddJS('ajaxRequest('+UniURLFrame1.jsname+', "_CustomWEvt", ["Param1=Value1"])'); end; the slave app don't receive "_CustomWEvt" from master app. What is not correct? How can communicate from slave app to master app ? Projects code in join file Link to comment Share on other sites More sharing options...
Oliver Morsch Posted August 22, 2016 Share Posted August 22, 2016 (1) UniUrlFrame1 is part of master, so the request goes to the master app. (2) You can access the content of an UniUrlfFrame (= iframe) and call a JS function (for example), but only if the server and port is the same (browser security) -> only with ISAPI (same port!) (3) use a XHR to other server Link to comment Share on other sites More sharing options...
WildFrag Posted August 29, 2016 Share Posted August 29, 2016 RabbitMQ Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now