[JavaScript]×ÔÒÑдµÄÒ»¸öAJAXÇëÇó£¢À࣢
¡¡¡¡ºÜ¶àÈ˶¼ÓùýAJAX¿Ø¼þ°É£¬AJAX¿Ø¼þ²»ÐèҪˢÐÂÒ³Ãæ¾Í¿ÉÒÔµ½ºǫ́ȥ¶Á³öÊý¾Ýµ½¿Í»§¶Ë£®AJAX¿Ø¼þ³ýÁËÓкÜìŵÄÌØЧÍ⣬ÆäÒª¹¦ÄܾÍÊDz»ÐèҪˢÐÂÕû¸öÒ³Ãæ¾Í¿ÉÒÔÈ¡µÃÓû§ËùÐèÒªµÄÊý¾Ý£¬ÎÒ°ÑÕâÒ»¿éµÄµÄ¹¦ÄÜ·â×°³ÉÒ»¸öÀ࣬·½±ãÈÕºó¿ÉÒÔÖظ´Ê¹Ó㬴úÂëÈçÏ£º
//Ajax Request Class Start
function AJAXRequestClass()
{
var adapter;
AJAXRequestClass.prototype.Send=function(par1,par2){return false;}
//SetLoadingEvent:Then server return value must handle this event.
AJAXRequestClass.prototype.SetLoadingEvent=function(FunctionName){if(FunctionName)
{AJAXRequestClass.prototype.DataHandler=FunctionName;return true;}else{return false;}}
AJAXRequestClass.prototype.ErrMessage="";
AJAXRequestClass.prototype.Status=0;
function tmpType()
{
tmpType.prototype.TEXT=0;
tmpType.prototype.XML=1;
tmpType.prototype.STREAM=2;
}
AJAXRequestClass.prototype.Type=new tmpType();
if(window.XMLHttpRequest)
{
adapter=new XMLHttpRequest();
}
else if(window.ActiveXObject)
{
try
{
adapter=new ActiveXObject("Msxml2.XMLHTTP");
}
catch(e)
{
try
{
adapter=new ActiveXObject("Microsoft.XMLHTTP");
}
catch(oc)
{
adapter=null
}
}
&nbs
Ïà¹ØÎĵµ£º
1. timeplot
µØÖ·£ºhttp://www.simile-widgets.org/timeplot/
ÏÂÔØ£ºhttp://code.google.com/p/simile-widgets/downloads/list
2.flot
ÊÇÒ»¸öjquery²å¼þ£¬Ð§¹û²»´í¡£
µØÖ·£ºhttp://code.google.com/p/flot/
3.Highcharts
µØÖ·£ºhttp://www.highcharts.com/
ºÃÏñÖ»¶Ô¸öÈËÃâ·Ñ¡£
......
·½·¨Ò»£º
Js_file01.js
========
//³ÌÐò´úÂë
document.write(" <script language=\"javascript\" src="\/com\/ Js_file02.js \" > <\/script>");
·½·¨¶þ£º
html´úÂë
³ÌÐò´úÂë
<html>
<body>
<input type="button" value="ok" onclick="ja ......
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>JavaScriptÄ£¿éË ......
Web¿ª·¢Õß²»»á×¢Òâµ½ÓÉ “AJAX(Asynchronous JavaScript And
XML)”Ëù´øÀ´µÄ¼¤Çé¡£²»·ÑÁ¦Æø¾ÍÄÜ´´½¨ÏñGoogle
SuggestÄÇÑùµÄÖÇÄÜÍøÕ¾»òÕßÏñGmailÄÇÑù»ùÓÚWebµÄÓ¦ÓóÌÐò£¬ÕâÔںܴó³Ì¶ÈÉÏÒª¹é¹¦ÓÚÕâÖÖ¼¼Êõ¡£È»¶ø£¬°éËæ×ÅAJAXÓ¦ÓóÌÐòµÄ·¢Õ¹£¬ÎÒÃÇ·¢
ÏÖÁËËüµÄһЩ²»×ãÖ®´¦£¬ÎÒÃÇ·¢ÏÖËüµÄ°²È«Â©¶´Ò²ÔÚÖð½¥±ä´ó£¬¾ÍÏ ......