Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ÍêÃÀAjaxÀà,Ö§³Öʼþ

<scrīpt Language="Javascrīpt">
<!--
// author:±¼ÌÚµÄÐÄ
//     qq:7180001
function Ajax(OnError,OnState,OnDownloadEnd)
{
        this.ErrorStr                 = null;
        this.OnError                 = OnError;
        this.OnState                 = OnState;
        this.OnDownloadEnd         = OnDownloadEnd;
        this.method                = "GET";
        this.URL                = null;
        this.sync                = true;
        this.PostData                = null
        this.RetData                 = null;
        this.HttpObj                 = this.createXMLHttpRequest();
        if(this.HttpObj == null)
        {
                return;
        }
        var ōbj = this;
        this.HttpObj.onreadystatechange = function()
        {
                Ajax.handleStateChange(Obj);
        }
}
Ajax.prototype.UTFTOGB = function(strBody)
{
        var Rec=new ActiveXObject("ADODB.RecordSet");
        Rec.Fields.Append("DDD",201,1);
        Rec.Open();
        Rec.AddNew();
        Rec(0).AppendChunk


Ïà¹ØÎĵµ£º

ajax¾Ö²¿Ìá½»

ʵÏÖ¹¦ÄÜ£ºµ¥»÷°´Å¥£¬½«´ÓÊý¾Ý¿â»ñÈ¡µÄÊý¾Ý·µ»Ø¸øÎı¾¿ò1(Ë¢ÐÂÎı¾¿ò1)£¬¶øÎı¾¿ò2²»Ë¢ÐÂ
Ò³Ãæ1£ºtest.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head ......

ajax´´½¨XMLHttpRequest¶ÔÏó

function ajaxFunction()
{
var xmlHttp;

try
{
// Firefox, Opera 8.0+, Safari
xmlHttp=new XMLHttpRequest();
}
catch (e)
{
// Internet Explorer
try
{
xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
}
catch (e)
{
try
......

¼òµ¥AjaxÓëJSPÏà½áºÏÒ³Ãæ

»·¾³£ºAjax+JSP£¬Tomcat5.05
²Î¿¼£ºhttp://www.w3cschool.cn/index-24.asp.htm
Îļþ£ºtestAjax.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb ......

JavaScript ¼òµ¥Àí½âAjaxÒì²½µ÷ÓòÙ×÷

JavaScript ¼òµ¥Àí½âAjaxÒì²½µ÷ÓòÙ×÷µÄÎÄÕ¡£
ÎÄÕµØÖ·£ºhttp://www.soaspx.com/dotnet/ajax/javascript/javascript_20090915_349.html
ÕâÆªÎÄÕÂÊÇÀí½âAjax¼¼ÊõµÄ¼òµ¥Àý³Ì£¬Í¦¼òÃ÷¶óÒª£¬ºÜÈÝÒ×Àí½â¡£
AjaxÌṩÓë·þÎñÆ÷Ò첽ͨÐŵÄÄÜÁ¦£¬½èÖúÓÚAjax£¬¿ÉÒÔÔÚÓû§µ¥»÷°´Å¥Ê±£¬Ê¹ÓÃJavaScriptºÍ DHTMLÁ¢¼´¸üÐÂUI£¬²¢Ïò·þÎñÆ÷ ......

AjaxÈëÃÅÍÆ¼ö

¶ÔÏëѧAjaxµÄÐÂÈË£¬Ç¿ÁÒÍÆ¼öÒ»ÏÂÎÄÕ£º¡¶ÕÆÎÕ Ajax ϵÁС·     http://www.ibm.com/developerworks/cn/web/wa-ajaxintro/
¸ÃϵÁУ¬²»ÏñÄÇЩͷʹҽͷ½ÅÍ´Ò½½ÅµÄËÙʳÅÉ£¬ßëßë߶߶˵Á˰ëÌì¶¼¾õµÃû˵µ½µã×ÓÉÏ£¬¸ÃϵÁÐÎÄÕÂÉîÈëdz³öµÄ½éÉÜÁËһЩºÜ»ù±¾µÄ֪ʶ£¬µÀ³öÁËһЩ·Ç³£±¾ÖʵÄÄںˣ¬¾ÍËãÄãÊÇAjaxÀÏÊÖ£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ