The project is in the three-frame mode: top, middle, and left. The requirement is that I update the top header information after executing an action. how can I implement this? For example, if a piece of data is inserted into the database in the PHP script, the top page is refreshed. Projects like this are in the three-frame mode: top, middle, and left. The requirement is that I update the top header information after executing an action. how can I implement this?
For example, if a piece of data is inserted into the database in the PHP script, the top page is refreshed. Similar to this
Reply content:
The project is in the three-frame mode: top, middle, and left. The requirement is that I update the top header information after executing an action. how can I implement this?
For example, if a piece of data is inserted into the database in the PHP script, the top page is refreshed. Similar to this
When performing the operation, use JS to send a request to the backend and return the specified data modification content.
AjaxOrIframe
Websocket persistent connection
Ajax can be implemented asynchronously. each operation is successful. ajax pulls the top template from the server and append the top template.