Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB
ÈÈÃűêÇ©£º c c# c++ asp asp.net linux php jsp java vb Python Ruby mysql sql access Sqlite sqlserver delphi javascript Oracle ajax wap mssql html css flash flex dreamweaver xml
 ×îÐÂÎÄÕ : ajax

AjaxÖлص÷º¯ÊýµÄ´¦Àí½á¹ûûÓзµ»Ø£¿

JScript code:

function callback() {
alert(18); //²âÊÔÊÇ·ñµ÷ÓÃÁËcallback»Øµ÷º¯Êý
if (httpRequest.readyState==4) {
if(httpRequest.status==200){
alert(3); //²âÊÔÊÇ·ñ×¼±¸ºÃ·µ»Ø´¦Àí½á¹û
var rs = httpRequest.responseText;
if(rs==0){
......

Ajax ÎÊÌâ

×î½üѧϰAJAX,²ÎÕÕhttp://dev.yesky.com/msdn/183/2426683.shtml×Ô¼º×öÁËÒ»¸öÁÐ×Ó£¬µ«ÊÇ×ÜÊÇÔÚJS´¦±¨´í_Default䶨Ò壬²»ÖªµÀʲôԭÒò¡£
ǰ̨ҳÃ棺
function comit_onclick()
{
¡¡var name=document.getElementById("tb1").value;
¡¡_Default.SetTb(name,callback);
}
ºǫ́£º
protect ......

AjaxÓëSessionµÄÎÊÌâ - .NET¼¼Êõ / ASP.NET

֮ǰÓöµ½Ò»¸öÎÊÌâ¡£
ÓÚÊÇ×öÁËÒÔÏÂʵÑ飺
Ò³Ãæ¼ÓÔغó£¬Ìá½»Ò»¸öAjaxÇëÇó(ÔݳÆΪajax1)£¬ÇëÇóµÄÏß³ÌÔÚ·þÎñÆ÷Éϱ»Ë¯Ãß10ÃëÖÓ¡£
µã»÷Ò³ÃæÉÏÒ»¸öbutton£¬´¥·¢ÁíÒ»¸öAjaxÇëÇó(ajax2)¡£
µ±Ã»ÓÐʹÓÃsession£¬ÔÚ·þÎñÆ÷δ´¦ÀíÍêajax1µÄÇëÇóʱ£¬·þÎñÆ÷ÒÀÈ»¿ÉÒÔ´¦Àíajax2µÄÇëÇó¡£
µ«ÊÇ£¬µ±Ê¹ÓÃÁËsession£¬ÔÚ·þÎñÆ÷δ´¦ÀíÍêajax1µÄÇ ......

ajax³¬Ê±ÎÊÌâ

var xmlHttp = null;
function Getxmlhttp()
{
var url = "update.php";

if (xmlHttp == null)
{
xmlHttp=GetXmlHttpObject();
  if (xmlHttp==null)
    {
    alert ("ÄúµÄä¯ÀÀÆ÷²»Ö§³ÖAJAX£¡ÇëÉý¼¶ä¯ÀÀÆ÷°æ±¾!");
  &n ......

ajaxµÄʹÓÃÎÊÌâ

ajaxʹÓÃÖÐÓöµ½¼¸¸öÎÊÌ⣬Çë¸÷λ°ïæ¡£

1¡¢Ê¹Óà alert(xmlhttp.responsetext); µ¯³öµÄÈ´ÊÇÕû¸öÒ³ÃæµÄHTMLÎı¾¡£
2¡¢Ê¹ÓÃxmlhttp·¢³öµÄÇëÇó£¬ÔÚÁíÒ»Ò³ÃæµÄPage_LoadÀͨ¹ýÓï¾äµÃµ½Ò»¸ö±íµÄÖµ£¬ÈçºÎ½«Õâ¸ö±íµÄÖµ·µ»Ø£¿È»ºóͨ¹ýAJAX½«·µ»ØµÄÖµ¸³¸ø±¾Ò³Ò»¸öultrawebgrid?



ÏÈ°Ñhtml´úÂëÇå¿ÕÁË.

......

¹úÇìÉ¢·Ö£¬Ë³±ãÌÖÂÛÒ»¸öAJAXÎÊÌâ

¼ÙÈçÒ»¸öÒ³ÃæÉÏÓÐN¸ö²Ù×÷£¬¶¼ÒªÓÃAJAX  ²»Óÿؼþ£¬×Ô¼ºÐ´JS
  ÀýÈç <a href="#" onclick="">aaaa </a>
      <a href="#" onclick="">aaaa </a>
      <a href="#" onclick="&quo ......
×ܼǼÊý:837; ×ÜÒ³Êý:140; ÿҳ6 Ìõ; Ê×Ò³ ÉÏÒ»Ò³ [127] [128] [129] [130] 131 [132] [133] [134] [135] [136]  ÏÂÒ»Ò³ βҳ
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ