The project is in three-frame mode, top, middle, and left. The requirement is that after I execute a certain action, I will update the top header information. How to implement this?
For example: I insert a piece of data into the database in a PHP script, and then the insertion is successful and the top page is refreshed. Something like this
The project is in three-frame mode, top, middle, and left. The requirement is that after I execute a certain action, I will update the top header information. How to implement this?
For example: I insert a piece of data into the database in a PHP script, and then the insertion is successful and the top page is refreshed. Something like this
When performing an operation, use JS to send a request to the backend and return the data to modify the specified content
ajax
or iframe
Use Websocket to connect permanently
Ajax can be implemented asynchronously. Every time the operation is successful, Ajax will go to the server to pull the top template and append it up