1 / 23
文档名称:

Ajax中文手册.doc

格式:doc   页数:23页
下载后只包含 1 个 DOC 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

Ajax中文手册.doc

上传人:1449388646 2012/12/30 文件大小:0 KB

下载得到文件列表

Ajax中文手册.doc

文档介绍

文档介绍:原作者介绍---http://2dming.
1. AJAX介绍
AJAX是一种运用JavaScript和可扩展标记语言(XML),在网络浏览器和服务器之间传送或接受数据的技术。
2. AJAX实例
AJAX可以用来创建更多交互式的网络应用程序。
3. AJAX源代码
简要分析上一章节效果的代码原理
4. AJAX与数据库
AJAX可以用来和数据端进行数据的交互联通。
5. 使用AJAX制作留言本
使用已有的AJAX教程,制作一个属于自己的留言本吧....
Ajax实例---http://2dming.
AJAX can be used to create more interactive applications.
AJAX可以用来创建更多交互式的网络应用程序。
AJAX Example
AJAX 实例
In the AJAX example below we will demonstrate how a web page municate with a web server online as a user enters data into a web form.
在以下的AJAX范例中,我们将了解到当用户以网页格式输入数据时一个网页是如何与网络服务器连接的。
Type a Name in the Box Below
在下面的框中输入姓名*实际操作请前往W3Schools
窗体顶端
First Name:
窗体底端
Suggestions:
Example Explained - The HTML Form
实例解析-超文本标记语言模式
The form above has the following HTML code:
以上的范例所含超文本标记语言代码如下:
<form>
First Name:
<input type="text" id="txt1"
onkeyup="showHint()">
</form>
<p>Suggestions: <span id="txtHint"></span></p>
As you can see it is just a simple HTML form  with a simple input field called "txt1".
就如你看到的,它只是一个普通的表单,里面有一称为"txt1"的输入框
The paragraph below the form contains a span called "txtHint". The span is used as a placeholder for hints retrieved from the web server.
下一段包括了一个称做“txtHint”的SPAN。这个SPAN是用来存储从服务器重新获得的信息的。
When the user inputs data, a function called "showHint()" is executed. The execution of the function is triggered by the "onkeyup" event. In other words: Each time the user moves his finger away from a keyboard key inside the txt1 field, the function showHint is called.
当用户输入数据,名为“showHint()”的函数将被执行。这个函数的执行是由“onkeyup”事件触发的。换种说法:每当用户在txt1区域内触动键盘按钮,showHint的功能就被执行。
Example Explained - The showHint() Function
实例解析- showHint()函数
The showHint() function is a very simple JavaScript function placed in the <head> section of the HTML page.
showHint()函数是一种位于HTML顶端的简单的JS函数。
The function contains the following code:
函数包含以下代码:
function showHint(str)
{
if ( > 0)
{
var url="?sid="+()+"&q="+str
xmlHttp=GetXmlHttpObject(sta