Share Link php + ajax implementation content acquisition and dynamic modification solution

Source: Internet
Author: User
The sharing link php + ajax implements content retrieval and dynamic modification because of work needs. the sharing link function looks simple and needs to be done well, it really takes some time to explain that, because the jquery package is a little big and the big functions won't be used here, I won't use it for reference. JS on the Internet, I simply wrote some JavaScript code to implement this function. three file sharing links: php + ajax to implement content retrieval and dynamic modification.
Or because of work needs, the share link function is implemented.
This function looks simple. it takes some time to complete it.
It indicates that the jquery package is a little big, and many functions cannot be used here, so it is useless.
Based on the JS on the Internet, a simple node JS is written to implement this function.
Three files:
Parse_share.html display page
Parse. js receives data operations returned by php
Parse. php remotely obtains data, processes analysis, and returns the json data format to js
Please watch the demo here

The source code address is also provided here: share the link php + ajax to obtain and dynamically modify the content (www.onlypo.com)

First, list the source code one by one:
Parse_share.html: there is nothing to say about this file.





Script
Share Link php + ajax for content retrieval and dynamic modification



 






 
 

// Bind an event to the button
AddNewThing (document. getElementById ('parse'), 'click', parseAsynch );
Script

 


------ Solution --------------------
However, please note that you can only call ajaj to return data in json format instead of ajax.

AJAX Asynchronous JavaScript and XML
Ajaj Asynchronous JavaScript and JSON

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.