Python Web. py interacts with AJAX, and PythonWeb. pyAJAX

Source: Internet
Author: User

Python Web. py interacts with AJAX, and PythonWeb. pyAJAX

If you haven't written a Blog for a long time, you may be lazy or feel that you have written something quite low before, and you are not too eager to write a Blog.

The practical training has already started. I hope that I can improve my thinking level, database, data mining, software development technology, and other aspects in this period. Although a small improvement, I hope to summarize my own unique things to attract more readers.

This time to record something, indeed simple, AJAX use, http://www.w3school.com.cn/ajax/index.asp
Here the W3C tutorial has been very detailed. Examples also contain ASP and PHP, which generally takes less than half an hour for an ordinary person to master, but I still plan to write a Python program to record it. About last year, I saw this term countless times, but I did not implement it myself. Programming or programming language is something that has never been done in person, so it is easy for others to believe in their skills.

-- A small program marks your determination to re-write the BLOG.

Too many problems,
1. Perform a local test on the problem that access involves cross-origin. Therefore, the test is conducted on the SAE.
2. static include static/js/juery-min.js
3,Do not use $ , Use jQuery, $ Conflict with the webpy Template
4. $ in the comment may cause problems!

<! DOCTYPE html> 

The Python core code is as follows:

    urls = (    '/hello','Hello'    )    class Hello:        def GET(self):            return self.render.ppp()        def POST(self):            return "true"

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.