10 2012 档案

Ajax:动态更新Web页面
摘要:<html xmlns="http://www.w3.org/1999/xhtml"><head> <title></title> <script type="text/javascript"> var xmlHttp; var name; var title; var department; var deleteID; var EMP_PREFIX = "emp_"; function createXMLHttpRequest() { if (window.Ac... 阅读全文

posted @ 2012-10-10 09:58 lufangtao 阅读(1822) 评论(0) 推荐(0)

Ajax:创建提示工具
摘要:<html xmlns="http://www.w3.org/1999/xhtml"><head> <title>自动提示功能</title> <script type="text/javascript"> var xmlHttp; var dataDiv; var dataTable; var dataTableBody; var offSetEl; function createXMLHttpRequest() { if (window.ActiveXObject) { ... 阅读全文

posted @ 2012-10-09 21:39 lufangtao 阅读(273) 评论(0) 推荐(0)

Ajax:进度条
摘要:<html xmlns="http://www.w3.org/1999/xhtml"><head> <title></title> <script type="text/javascript"> var xmlHttp; var key; var bar_color = 'gray'; var span_id = "Span"; var clear = "&nbsp;&nbsp;&nbsp;"; function c 阅读全文

posted @ 2012-10-09 20:59 lufangtao 阅读(517) 评论(0) 推荐(0)

Ajax:自动刷新
摘要:<html xmlns="http://www.w3.org/1999/xhtml"><head> <title></title> <script type="text/javascript"> var xmlHttp; function createXMLHttpRequest() { if (window.ActiveXObject) { xmlHttp = new ActiveXObject("Microsoft.XMLHTTp"); } else if... 阅读全文

posted @ 2012-10-09 17:49 lufangtao 阅读(2985) 评论(0) 推荐(0)

Ajax:动态加载列表框
摘要:<html xmlns="http://www.w3.org/1999/xhtml"><head> <title></title> <script type="text/javascript"> var xmlHttp; function createXMLHttpRequest() { if (window.ActiveXObject) { xmlHttp = new ActiveXObject("Microsoft.XMLHTTp"); } else if... 阅读全文

posted @ 2012-10-08 20:24 lufangtao 阅读(741) 评论(0) 推荐(0)

Ajax:读取响应首部
摘要:有时,只是想“ping”一下服务器,验证服务器是否正常运行。此时,只需要读取服务器发出的响应首部,而忽略内容。通过读取响应首部,可以得出content-Type(内容类型)、Content-Length(内容长度)。甚至LastModified(最后一次修改)的日期。<html xmlns="http://www.w3.org/1999/xhtml"><head> <title></title> <script type="text/javascript"> var xmlHttp; var r 阅读全文

posted @ 2012-10-08 19:39 lufangtao 阅读(229) 评论(0) 推荐(0)

Ajax:数据验证
摘要:<html xmlns="http://www.w3.org/1999/xhtml"><head> <title></title> <script type="text/javascript"> var xmlHttp; function createXMLHttpRequest() { if (window.ActiveXObject) { xmlHttp = new ActiveXObject("Microsoft.XMLHTTp"); } else if... 阅读全文

posted @ 2012-10-08 19:16 lufangtao 阅读(309) 评论(0) 推荐(0)

Ajax:发送请求与处理响应
摘要:1.处理服务器响应 XMLHttpRequest对象提供了两个可以用来访问服务器响应的属性。第一个属性responseText将响应提供了一个串,第二个属性responseXML将响应提供了一个XML对象。 1.1 利用innerHTML属性创建动态内容 innerHTML.xml 文件内容如下:<?xml version="1.0" encoding="utf-8" ?><table border="1"> <tbody> <tr> <th>姓名</th> &l 阅读全文

posted @ 2012-10-08 10:50 lufangtao 阅读(5835) 评论(0) 推荐(0)

XMLHttpRequest对象
摘要:1.XMLHttpRequset对象创建 Internet Explorer把XMLHttpRequest实现为一个ActiveX对象,其他浏览器(如Firefox、Safari和Opera)把它实现为一个本地Javascript对象。由于存在这些差异,Javascript代码中必须包含有关的逻辑,从而使用ActiveX技术或者使用本地Javascript对象技术来创建XMLHttpRequest的一个实例。var xmlHttp;function createXMLHttpRequest(){ if(window.ActiveXObject) //判断是不是IE浏览器 { xm... 阅读全文

posted @ 2012-10-07 15:54 lufangtao 阅读(371) 评论(0) 推荐(0)

导航