Php + ajax implementation of the solution for refreshing comments
Source: Internet
Author: User
Php + ajax implementation of refreshing comments: how to implement php + ajax implementation of refreshing comments; how to implement refreshing comments using ajax first; how to implement refreshing comments using php + ajax
How to implement php + ajax without refreshing comments
------ Solution --------------------
Get ajax first
Http://blog.csdn.net/phpBoy005/archive/2009/03/31/4037828.aspx
------ Solution --------------------
Learn about ajax. submit comments later and use Ajax to update comments.
------ Solution --------------------
Learn ajax first!
------ Solution --------------------
Do you mean not to submit the entire page, just partial refresh and display the response?
The link on the first floor is well written. as a result, I posted my experiences with learning ajax a few days ago.
Http://blog.csdn.net/itcoco/archive/2009/08/05/4413397.aspx
------ Solution --------------------
First, you must first determine to use the original ajax to write a lot of code, but the jquery framework greatly reduces the code. First, I learned how to use the jquery framework to write ajax. just look at several examples.
------ Solution --------------------
Using the jquery framework
Implementation ideas:
1. click the comment button to submit the input to php, such as writing data to the database for verification.
2. load the div layer from the new layer, read the comment content layer during the load process and interact with php to get the data and then fill the layer again.
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