When segmentfault notes are deleted successfully, how can this problem be solved?

Source: Internet
Author: User
What is the alert reminder used on my note page to Delete the note? In other words, after a note is successfully deleted, how does one notify my note page to display this reminder?

What is the alert reminder used on my note page to Delete the note?
In other words, after a note is successfully deleted, how does one notify my note page to display this reminder?

Reply content:

What is the alert reminder used on my note page to Delete the note?
In other words, after a note is successfully deleted, how does one notify my note page to display this reminder?

This is a one-time session. If you have used the CI, laravel, and YII frameworks, the manual will introduce one-time sessions. Literally, this session value will be deleted once.

If the operation succeeds or fails, the information is written to the one-time session.

This message reminder view exists on all pages. If there is a corresponding one-time session, it is output.

Ajax.

I think the essence of this cross-page message transmission isThe server sends a Real-Time Message to the browser.

There are generally three methods:

  1. Ajax round robin (easy to implement, high server pressure, poor real-time performance)

  2. Persistent connections (black technology seems hard to achieve)

  3. Websocket (hope of web message mechanism)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.