a.sanf Posted December 28, 2021 Share Posted December 28, 2021 Hi to everybody Currently I have a functioning scenario as shown, where I have essentially 3 parts: login + session side (managed by unigui + delphi routine), site side with html + php database + resources & files. At login access, an unigui session is created with a mainform that through uniURLframe load home site page. Threads are activated that check profile and events on the DB. Through TuniURLframe a home php page is loaded (passing the session to control accesses, profiles, logs) . The site (which is independent for the management pages at the moment) but dependent on the session, can exchange data and files through requests on mssql database or through requests to unigui (simulating a sort of restapi) which responds quickly, for example to create a report in pdf and load it. Everything works very smoothly and quickly (via a 40cores + 512GB Ram server) with hyperserver, php, mssql about 250 user/day (for a business application that also shares desktop applications in delphi. Unigui + site will serve for a total pass to browser/internet technology). Now the need arises to create something more interactive and I would like to have your help and advice on how to interact with external pages with ajax. For example how to call events via ajax (the idea is to create the ajax code in the pages on the site) which is intercepted by the mainform (which processes and interacts with the page loaded in the uniURLframe). Could you advise me or attach examples of routines? Thanks Antonio Quote Link to comment Share on other sites More sharing options...
Tokay Posted December 28, 2021 Share Posted December 28, 2021 You could not directly interacting with side site with help of ajax. Ajax could interact only with back (Delphi code), and back, I think, could interact with your other site in some way (websocket?). Quote Link to comment Share on other sites More sharing options...
a.sanf Posted January 3, 2022 Author Share Posted January 3, 2022 Hi Tokay Thanks for your replay. So to understand, if html+php server side resides on another server, with uniURLframe I can just browse? correct ? Quote Link to comment Share on other sites More sharing options...
Tokay Posted January 3, 2022 Share Posted January 3, 2022 Browsing in uniURLframe works fine, you can try it. If such behaviour fit for you. 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.