Ajax application Case of Tudou

Source: Internet
Author: User
Ajax NetEase Email: http://mail.163.com
Google maps:http://maps.google.com
Google suggest:http://www.google.com/webhp?complete=1&hl=en
Tudou: http://www.toodou.com


The rest will be added in succession.

1, Tudou:
When the Tudou registered, found a user nickname, the text box at the end of an icon quickly flashed, below gives "the nickname has been occupied" hint. Well, it's a bit of an Ajax shadow.
Analyze the page (http://www.toodou.com/register/register.php) and immediately find the code for AJAX.
<!--Private Javascript-->
<script type= "Text/javascript" src= "/script/register.js" ></script>
<!--Ajax Framework-->
<script src= "/js/toodou.js" type= "Text/javascript" ></script>
<script src= "/js/zajax.js" type= "Text/javascript" ></script>
<script src= "/js/zz_util.js" type= "Text/javascript" ></script>
<script src= "/js/zz_string.js" type= "Text/javascript" ></script>
<script src= "/js/zz_register_func.js" type= "Text/javascript" ></script>

Among them, Zajax.js is the Ajax Framework used by potatoes. The framework changes from Sajax, increases the freedom of the call, and improves the Chinese invocation on the server side. Its copyright information is as follows:
Zajax v 0.10
Made by Tudou Zarz (http://www.toodou.com/)
Based on Sajax 0.10 (http://www.modernmethod.com/sajax/)
Split the SAJAX server and client programs, increased the freedom of invocation, improved Chinese support on the service side
Here is not the code posted out, interested in their own can be download down to study.

Related Article

Cloud Intelligence Leading the Digital Future

Alibaba Cloud ACtivate Online Conference, Nov. 20th & 21st, 2019 (UTC+08)

Register Now >

Starter Package

SSD Cloud server and data transfer for only $2.50 a month

Get Started >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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.