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

·ºÐÍͨÓö¯Ì¬²éѯ(LinQ+Ajax)

ÎҵĴºÇï³ÕÃεڶþ²½£º
дһ¸ö ͨÓÃµÄ ¶ÔÏó ÁÐ±í £¬»¹ °üº¬ ËÑË÷ºÍ ÊôÐÔ¹ýÂË¡£
¾ßÌåµÄЧ¹ûÊÇ£º
µ±Ð ҵÎñ Ìí¼ÓÒ»¸ö ±íµÄʱºò£¬Ö»ÐèÒªÔÚ ¶ÔÏóÄ£ÐÍÀïµÄ Ìí¼ÓÒ»¸ö model
ºǫ́¼¸ºõ²»Ðèд´úÂë¡£
(ÎÒÊǺǫ́£º¼¤¶¯ÈËÐÄ£¡)
µ÷ÓõĶÔÏ󣬵ڼ¸Ò³£¬ÊôÐ﵀ ¹ýÂË ºÍËÑË÷È«ÊÇ Ç°Ì¨µÄAjax²ÎÊý¿ØÖÆ
(ÎÒÊÇǰ̨£º#$!@#$%$^#$%# )
ÏÂÃæ˵˵ÎÒµÄ˼·°É£º
1.ǰ̨·¢³öÇëÇó дÃ÷ µ÷ÓÃµÄ modleName ºÍ һЩÊôÐÔ µÄ¹ýÂË 
È磺Author like,1 ModelName Article   ËÑË÷×÷Õß °üº¬ 1   ¶ÔÏóÃû ÎÄÕÂ
2.ºǫ́½ÓÊÜ ´¦Àí´«µÝµÄ²ÎÊý
3.¸ù¾Ý ¶ÔÏóÃû µ÷Óà ¶ÔÏó ²¢¹ýÂË
4.¸ù¾Ý ¶ÔÏóÃû ·µ»Ø ¶ÔÓ¦ Ò³Ãæ
 1.ǰ̨JS ´úÂë
ǰ̨´úÂë
//================================================
//ºǫ́ÈÎÒ» ÀàÐÍ Áбí
//================================================
function AjaxForList(duixiang, pageid) {
var searchWords = $("#SearchWords").val();
var searchType = $("#SearchType").val();
var channelId = $("#list").val();
var IsRecycle = $("#IsRecycle").attr("checked");
//ÅÅÐòÃû
var sortName = "CreaterData";
//==================IsRecycle
var Del = new Array();
Del.push("="); //alert(IsRecycle);
if (IsRecycle) { Del.push(1); }
else { Del.push(0); }
//==================FullTitle
// 2010-3-22 0:00:00
var FullTitle = new Array();
FullTitle.push("like");
FullTitle.push("1");
//==================FullTitle
var Author = new Array();
Author.push("like");
Author.push("1");
//==================IsAudit
var IsAudit = new Array();
IsAudit.push("=");
IsAudit.push("0");
//============================
$.ajax(//
{
type: "POST",
url: "/Admin/UserKJ/AjaxForList",
data: "ModelName=" + duixiang + "&&PageId=" + pageid + "&&sortName=" + sortName + "&&Del=" + Del + "&&FullTitle=" + FullTitle + "&&Author=" + Author + "&&IsAudit=" + IsAudit,
dataType: "html",
beforeSend: function(XMLHttpReq


Ïà¹ØÎĵµ£º

AJAXÖÐÎÄÂÒÂëµÄÁ½ÀàÎÊÌâ½â¾ö·½·¨

1£©·¢ËÍ·¾¶ÖеIJÎÊýÓÐÖÐÎÄ£¬ÔÚ·þÎñÆ÷¶Ë½ÓÊÕ²ÎÊýÖµÊÇÂÒÂë
½â¾ö·½·¨£º
PHP:
·þÎñÆ÷¶Ë£ºiconv("UTF-8","gb2312",$_POST[±äÁ¿Ãû]);
JSP:
¿Í»§¶Ë:
ÀûÓÃjavascriptµÄÌṩµÄescape()»òencodeURI()·½·¨, Àý
var url="a.jsp?name=СÀî"£»
url=encodeURI(url);
url=encodeURI(url); //Á½´Î£¬ºÜ¹Ø¼ü[¾ßÌåΪʲô£¬ÎÒÒ²²»Çå³þ ......

AJAXÀïTabContainerµÄCSS (תÌù)

AJAX×Ô´ÓÒý½øÁËTab£¬×ÅʵÈÃÎÒ¿ªÐÄÁËÒ»·¬¡£µ«ÊÇ£¬ÔÚµ÷ÕûTabµÄÑùʽµÄʱºò£¬Ò²×ÅʵÈÃÎÒ³ÔÁËÒ»¾ª¡£
ÓÚÊÇ£¬±§×ÅûÓÐÀ§ÄÑÒ²ÒªÖÆÔìÀ§ÄѵÄÔ­Ôò£¬¿ªÊ¼ÁËÕ÷;£º
°´ÕÕTab×÷ÕßRonald BucktonËù˵£¬TabµÄCSS°üº¬Èçϼ¸¸öÀࣺ
(1).ajax__tab_header: A container element that wraps all of the tabs at the top of the TabContainer. ......

Ajax ºÍ XML: ÎåÖÖ³£¼û Ajax ģʽ

ºÃ¾Ã²»ÅöWEBµÄ¶«¶«ÁË,×î½üѧϰ£Ó£Á£ÐµÄ£Â£Ó£Ð¼¼Êõ£¬ÓÖÓõ½ÕâЩ£¬Ë³±ãתƪÎÄÕ£¬±¸²é£®
Ô­ÎĵØÖ·: http://www.ibm.com/developerworks/cn/xml/x-ajaxxml2/
Ajax ºÍ XML:
Îå
ÖÖ³£¼û Ajax ģʽ
¿ÉÁ¢¼´Ê¹ÓÃÕâЩ·Ç³£ÓÐÓÃµÄ Ajax Éè¼Æģʽ
ÎĵµÑ¡Ïî
<tr valign="top"><td width="8">< ......

ÎÒµÄAjaxÔÓ̸ Ò²ÐíÒ²ÊÇÂÒµ¯

      Google Suggest ºÍGoogle MapµÄ³öÏÖ£¬ÒýÆðÁËÎÒÃÇWeb¿ª·¢ÕßµÄÒ»´ÎÕ𶯡£Ëæ×ÅAjax¼¼ÊõµÄ³öÏÖ¡¢Ê¢ÐУ¬±¾±»ºöÊÓÈÏΪÊǶþÁ÷±à³ÌÓïÑÔµÄJavaScript½Å±¾Ò²¿ªÊ¼ÁËеÄÊ¢ÐУ¬´óÁ¿µÄJavaScript¿ò¼ÜµÄ³öÏÖÈçMicrosoft Asp.Net Ajax¡¢jQueryµÈ¡£AjaxÒѾ­³ÉΪÕâЩ½Å±¾¿ò¼Ü±Ø²»¿ÉÉÙµÄ×é³É²¿·ÖÁË£¬¶øÇÒAjaxµ ......

AJAX DWR

ʹÓÃԭʼµÄXMLHttpRequest·¢³öÇëÇóʱ,Ö»ÄܶÔServletºÍJSP²Ù×÷
ÔÚJSPÖд´½¨3¸öfunction
1.createXmlHttpRequest----¸ºÔðÅжÏä¯ÀÀÆ÷ÀàÐÍ´´½¨ XMLHttpRequest¶ÔÏó
 var xmlHttpRequest;
 function createXMLHttpRequest(){
   // IE ä¯ÀÀÆ÷
   if(window.ActiveXObject){
&nbs ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ