Dynamic page loading in javascript-JS

Source: Internet
Author: User
I am a beginner. What I am doing now is that after a student logs on, he can see the most recent activities (start time, location, and participants) in the school. He can choose to participate, once the participants are full, they will not be able to participate. That's easy. The problem is: I am now using PHP at the backend and js dynamic at the front end. I don't know from the data...

I am a beginner. What I am doing now is that after a student logs on, he can see the most recent activities (start time, location, and participants) in the school. He can choose to participate, once the participants are full, they will not be able to participate. That's easy.
The problem is: I am now using PHP at the backend and js dynamic at the front end. I don't know what data formats should be used for sending back JavaScript data from the database (easy to learn, the pursuit of efficiency does not consider performance), and then what method is used to insert elements into the page (is DOM convenient and easy to typeset )?

Now is the front-end page I just created

Reply content:

I am a beginner. What I am doing now is that after a student logs on, he can see the most recent activities (start time, location, and participants) in the school. He can choose to participate, once the participants are full, they will not be able to participate. That's easy.
The problem is: I am now using PHP at the backend and js dynamic at the front end. I don't know what data formats should be used for sending back JavaScript data from the database (easy to learn, the pursuit of efficiency does not consider performance), and then what method is used to insert elements into the page (is DOM convenient and easy to typeset )?

Now is the front-end page I just created

Json is the most convenient,

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.