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

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.