<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>记忆博客园 - ajax类</title><link>http://blog.csdn.net/remanticmemory/category/266185.aspx</link><description>新技术，新希望</description><dc:language>zh-CN</dc:language><lastUpdateTime>Thu, 27 Sep 2007 08:59:28 GMT</lastUpdateTime><ttl>60</ttl><item><dc:creator>RemanticMemory</dc:creator><title>AJAX实例：根据邮编自动完成地址信息</title><link>http://blog.csdn.net/remanticmemory/archive/2007/08/21/1752756.aspx</link><pubDate>Tue, 21 Aug 2007 13:53:00 GMT</pubDate><guid>http://blog.csdn.net/remanticmemory/archive/2007/08/21/1752756.aspx</guid><wfw:comment>http://blog.csdn.net/remanticmemory/comments/1752756.aspx</wfw:comment><comments>http://blog.csdn.net/remanticmemory/archive/2007/08/21/1752756.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/remanticmemory/comments/commentRss/1752756.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1752756</trackback:ping><description>描述： 
　　在注册或购物车结帐的时候，需要用户填入个人资料，这个环节可以简练一下，我们只需客人填入邮政编码，然后就根据这个邮政编码，自动从数据库中取出相应的省，市等地址信息。这样既可以减少客户的输入，增加客户体验，又可以减少由于资料输入而产生的错误。

　　实现：

 HTML

Enter A United States Zipcode, Then Tab

  
    Enter Zipcode:
    
  
  
    City:
    
  
  
    State:
    
  


 


　以上是客户输入页面，下面是服务端的处理页面'zipcode.php 


　　当客户输入一个POSTCODE后，zipcode.php就接收到它，然后进行从数据表中取出对应的资料，再按一定的格式返回给客户端（此处是以 | 分隔）。最后客户端接收返回的资料，显示在页面上。

if(response.indexOf('|' != -1)) {
            update = response.spli&lt;img src ="http://blog.csdn.net/remanticmemory/aggbug/1752756.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>RemanticMemory</dc:creator><title>.net2003+ajax 表单用户名验证无刷新</title><link>http://blog.csdn.net/remanticmemory/archive/2007/07/16/1693264.aspx</link><pubDate>Mon, 16 Jul 2007 11:27:00 GMT</pubDate><guid>http://blog.csdn.net/remanticmemory/archive/2007/07/16/1693264.aspx</guid><wfw:comment>http://blog.csdn.net/remanticmemory/comments/1693264.aspx</wfw:comment><comments>http://blog.csdn.net/remanticmemory/archive/2007/07/16/1693264.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/remanticmemory/comments/commentRss/1693264.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1693264</trackback:ping><description>.net2003+ajax 表单用户名验证无刷新&lt;img src ="http://blog.csdn.net/remanticmemory/aggbug/1693264.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>RemanticMemory</dc:creator><title>ajax中文乱码原因分析 </title><link>http://blog.csdn.net/remanticmemory/archive/2007/01/06/1475933.aspx</link><pubDate>Sat, 06 Jan 2007 22:22:00 GMT</pubDate><guid>http://blog.csdn.net/remanticmemory/archive/2007/01/06/1475933.aspx</guid><wfw:comment>http://blog.csdn.net/remanticmemory/comments/1475933.aspx</wfw:comment><comments>http://blog.csdn.net/remanticmemory/archive/2007/01/06/1475933.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/remanticmemory/comments/commentRss/1475933.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1475933</trackback:ping><description>　常见的乱码有两种：一个是表单提交出现乱码；一个是以地址栏传参数出现乱码。&lt;img src ="http://blog.csdn.net/remanticmemory/aggbug/1475933.aspx" width = "1" height = "1" /&gt;</description></item></channel></rss>