Ajax is triggered by a front-end page. Can ajax be implemented in turn? -SegmentFault

Source: Internet
Author: User
For example, ajax is triggered by an action on the front-end page, and the data is retrieved from the background, and then dynamically returned to the front-end. for example, you can modify html elements without any additional modification. in turn, some code is executed by the php backend. If the code is successful, the code of the front-end page will be dynamically modified to achieve no refreshing. Is this technology available? For example, ajax is triggered by an action on the front-end page, and the data is retrieved from the background, and then dynamically returned to the front-end. for example, you can modify html elements without any additional modification. in turn, some code is executed by the php backend. If the code is successful, the code of the front-end page will be dynamically modified to achieve no refreshing. Is this technology available?

Reply content:

For example, ajax is triggered by an action on the front-end page, and the data is retrieved from the background, and then dynamically returned to the front-end. for example, you can modify html elements without any additional modification. in turn, some code is executed by the php backend. If the code is successful, the code of the front-end page will be dynamically modified to achieve no refreshing. Is this technology available?

  • 2 hours ago
  • 1 comment
  • Reply

Please log on first and then comment

Sort by default

Two answers

The answer is helpful to people and has reference value.2The answer is not helpful. It is a wrong answer.

Websocket pushes data to the front end

Both comet and websocket can be used, but they all need to be connected by the client.

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.