<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
<script src="js/prototype.js" type="text/javascript"></script>
<script>
function searchSales() {
var empID = $F('lstEmployees');
var y = $F('lstYears');
var url = 'http://localhost/gameloft/downpic.php';
var pars = '';
var myAjax = new Ajax.Request(url, {method: 'get', parameters: pars, onComplete: showResponse});
}
function showResponse(originalRequest){
//put returned XML in the textarea
$('result').value = originalRequest.responseText;
}
</script>
</HEAD>
<BODY>
sdfsdf
<select id="lstEmployees" size="10" onchange="searchSales()">
<option value="5">Buchanan, Steven</option>
<option value="8">Callahan, Laura</option>
<option value="1">Davolio, Nancy</option>
</select>
<select id="lstYears" size="3" onchange="searchSales()">
<option selected="selected" value="1996">1996</option>
<option value="1997">1997</option>
<option value="1998">1998</option></select>
<br>
<textarea id=result cols=60 rows=10 ></textarea>
</BODY>
</HTML>
<?
echo '<?xml version="1.0" encoding="GBK" ?>';
echo '<ajax-response>';
echo '<response type="object" id="productDetails">';
echo '<monthly-sales>';
echo '<employee-sales>';
echo '<employee-id>NIHA</employee-id>';
echo '<year-month>1998-01</year-month>';
echo '<sales>$8,115.36</sales>';
echo '</employee-sales>';
echo '<employee-sales>';
echo '<employee-id>1234</employee-id>';
echo '<year-month>1998-02</year-month>';
echo '<sales>$11,147.51</sales>';
echo '</employee-sales>';
echo '</monthly-sales>';
echo '</response>';
echo '</ajax-response>';
?>
分享到:
相关推荐
1.4.1. 使用 Ajax.Request类 1.4.2. 使用 Ajax.Updater 类 2. prototype.js参考 2.1. JavaScript 类的扩展 2.2. 对 Object 类的扩展 2.3. 对 Number 类的扩展 2.4. 对 Function 类的扩展 2.5. 对 String 类的扩展 ...
有关ajax的框架之一 最新版prototype 详细内容http://www.prototypejs.org/
为方便调用,本人另写了两个函式:mmAjaxUpdater和mmAjaxRequest,在实践中,这两个函数只兼容prototype1.3.1版本。因此对以上函数进行重写,现在已兼容所有版本的prototype.js,方便在项目开发中进行ajax调用。
prototype-160-api.rar prototype-160-api.rar
经典ajax.prototype.javascript实例-加载效果显示大图
PROTOTYPE 1.5.1 RC1 API文档 <br>API DOCUMENTATION <br>Welcome to the API documentation for Prototype. The left column contains the main sections. When you activate a section, its detailed ...
Prototype-1.6.0-zh.chm 中文手册。好不容易找到的最新的prototype手册。
Learning-Robotics-Using-Python-Design-simulate-program-and-prototype-an-interactive-autonomous-mobile-robot-from-scratch-with-the-help-of-Python-ROS-and-Open-CV-.pdf
prototype 框架实现ajax实例
python库。 资源全名:eth_prototype-0.2.0-py2.py3-none-any.whl
ember-disable-prototype-extensions-源码.rar
prototype-1.6.0.3.js prototype1.4中文手册(chm) prototype1.5中文手册(chm) prototype1.6英文手册(chm)
前面我们扩展了bind方法和ready函数,这次我要讲一下$.fn.extend 和$.extend函数。 其他的不多说,直接切入主题吧! 先来看看这两个函数的区别: $.fn.extend是为查询的节点对象扩展方法,是基于$的原型扩展的方法...
prototype.js开发笔记.doc prototype.js开发笔记.doc prototype.js开发笔记.doc prototype.js开发笔记.doc
AS-23-Shcherbakov-Prototype-Pollution-Leads-to-RCE
Internet-of-Things-with-Python-Interact-with-the-world-and-rapidly-prototype-IoT-applications-using-Python.pdf
prototype-1.7.js
prototype1.5开发手册 博文链接:https://moonlight2010.iteye.com/blog/1317880
prototype-1.6.0.3.js