易截截图软件、单文件、免安装、纯绿色、仅160KB

php 的 ajax 实现

<script type="text/javascript" src="jquery-1.3.2.min.js"></script>
<input type="button" onclick="test();" value="提交"/>
<script type="text/javascript">
    function test(){
            var valid = {
                username: 'taoge',
                password: '123456'
            };
            $.ajax({
                url: 'valid.php',
                type: 'get',
                data: valid,   // 发送的数据
                dataType: 'json', // 发送/接收数据的格式
                success: function(data){
                    alert(""+data.username);
                },
                error: function(data){
                    alert("xxx"+data);
                }
            });
    }
</script>
===========================
valid.php


相关文档:

AJAX使用json解析与使用xml解析的比较

工具:myeclipse 6.5
json中文官方:http://www.json.org/json-zh.html
新建项目webs,在WebRoot下新建目录json
xml的解析方式:
------------------------------------------------------------------
1.新建NewFile.xml
<?xml version="1.0" encoding="UTF-8"?>
<userinfo>
  ......

jquery+ajax+json+asp.net学习笔记(一)

jquery中已经封装了ajax的过程,使用起来很简单:
通过get方式提交:
<html>
<head>
    <title>实现服务器时间实时变化</title>
    <script language="javascript" type="text/javascript" src="js/jquery-1.3.1.js"></script>
  & ......

jquery+ajax+json+asp.net学习笔记(二)

jquery通过post传递数据到服务器(不使用插件):
<html>
<head>
    <title>Untitled Page</title>
    <script language="javascript" type="text/javascript" src="js/jquery-1.3.1.js"></script>
    <script language="ja ......

PHP安装步骤(以apache 2 + php5.3为例)

1.     
Download Apache for windows MSI
file, and run it
By
default, port is 80, root dir is %apache_dir%/htdocs. You can update the
settings in conf/httpd.conf file
2.  If Apache Service can't be installed in "Control Panel > Admin Tools > Services&quo ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号