Python web.py interacting with Ajax

Source: Internet
Author: User

Haven't written a blog for a long time, may be lazy, it may also feel that they have previously written something quite low, there is no great interest to write blog.

The practical training has already begun, hoped oneself in this time thinking level, the database, the data mining, the software development technology and so on each aspect can have the quality promotion. If a promotion is small, I hope to sum up my unique things and attract more readers.

This time to record things, indeed simple, Ajax use, http://www.w3school.com.cn/ajax/index.asp
Here, the tutorial has been very detailed, examples also have ASP and PHP, roughly an ordinary person can take less than half an hour to master, but they still intend to write a Python program to record. Ajax probably in the last year, I have seen this term countless times, but eventually did not personally realize it again. Programming or programming language this kind of thing, did not personally do, see others casually knock Wills to its skill, when oneself realized also will find so much.

--A small program to mark their own intention to re-write blog's determination.

I've met too many questions,
1, directly in the local test access involves cross-domain issues, and then put on the SAE to test.
2, Static contains Static/js/juery-min.js
3.Don't use$ ,to bewithJQueRy , $Conflicts with Webpy templates
4. In the comments$are likely to cause problems!

<! DOCTYPE html>

The following is the Python core code:

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

Python web.py interacting with Ajax

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.